Minor. Merge multiplatformTypeRefinement testdata with multiplatform testdata

This commit is contained in:
Dmitry Savvinov
2019-07-30 12:25:49 +03:00
parent 9f90486893
commit 79313037d1
80 changed files with 93 additions and 110 deletions
+9
View File
@@ -0,0 +1,9 @@
@file:Suppress("UNUSED_PARAMETER")
package sample
expect interface A
fun useA(block: A.() -> Unit) {}
fun anotherUseA(block: (A) -> Unit) {}
+4
View File
@@ -0,0 +1,4 @@
MODULE common { platform=[JVM, JS, Native] }
MODULE jvm { platform=[JVM] }
jvm -> common { kind=DEPENDS_ON }
+23
View File
@@ -0,0 +1,23 @@
package sample
actual interface A {
fun foo()
}
fun test() {
useA {
foo()
}
anotherUseA {
<!UNRESOLVED_REFERENCE("foo")!>foo<!>()
}
anotherUseA {
it.foo()
}
anotherUseA { a ->
a.foo()
}
}