[CLI] Add CLI arguments to pass HMPP module structure to the compiler
^KT-56209
This commit is contained in:
committed by
Space Team
parent
ec59cc050c
commit
77caa31640
+7
@@ -0,0 +1,7 @@
|
||||
expect class A {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
expect class B {
|
||||
fun bar()
|
||||
}
|
||||
+13
@@ -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
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user