Minor. Merge multiplatformTypeRefinement testdata with multiplatform testdata
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
@file:Suppress("UNUSED_PARAMETER")
|
||||
|
||||
package sample
|
||||
|
||||
expect interface A
|
||||
|
||||
fun useA(block: A.() -> Unit) {}
|
||||
|
||||
fun anotherUseA(block: (A) -> Unit) {}
|
||||
@@ -0,0 +1,4 @@
|
||||
MODULE common { platform=[JVM, JS, Native] }
|
||||
MODULE jvm { platform=[JVM] }
|
||||
|
||||
jvm -> common { kind=DEPENDS_ON }
|
||||
+23
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user