[CLI] Add CLI arguments to pass HMPP module structure to the compiler

^KT-56209
This commit is contained in:
Dmitriy Novozhilov
2023-02-08 18:14:12 +02:00
committed by Space Team
parent ec59cc050c
commit 77caa31640
31 changed files with 504 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
expect class A {
fun foo()
}
expect class B {
fun bar()
}
+13
View File
@@ -0,0 +1,13 @@
actual class A {
actual fun foo() {}
fun actFoo() {}
}
fun acceptB(b: B) {
b.bar()
}
fun acceptA(a: A) {
a.foo()
a.actFoo()
}
+15
View File
@@ -0,0 +1,15 @@
actual class B {
actual fun bar() {}
fun actBar() {}
}
fun actualAcceptB(b: B) {
b.bar()
b.actBar()
}
fun test() {
acceptA(A())
acceptB(B())
actualAcceptB(B())
}