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
@@ -0,0 +1,13 @@
@file:Suppress("UNUSED_PARAMETER")
package sample
// --------------------------------------------
expect interface A {
fun foo()
}
fun take_A_common_1(x: A) {
x.foo()
}
@@ -0,0 +1,13 @@
@file:Suppress("UNUSED_PARAMETER")
package sample
actual interface A {
actual fun foo()
fun bar()
}
fun take_A_common_2_1(x: A) {
x.foo()
x.bar()
}
@@ -0,0 +1,13 @@
@file:Suppress("UNUSED_PARAMETER")
package sample
actual interface A {
actual fun foo()
fun baz()
}
fun take_A_common_2_2(x: A) {
x.foo()
x.baz()
}
@@ -0,0 +1,14 @@
MODULE common-1 { platform=[JVM, JS, Native]; root=common-1 }
MODULE common-2-1 { platform=[JVM]; root=common-2-1 }
MODULE common-2-2 { platform=[JVM]; root=common-2-2 }
MODULE jvm { platform=[JVM]; root=jvm }
common-2-1 -> common-1 { kind=DEPENDS_ON }
common-2-2 -> common-1 { kind=DEPENDS_ON }
jvm -> common-2-1, common-2-2 { kind=DEPENDENCY }
// TODO: remove closure
jvm -> common-1 { kind=DEPENDENCY }
@@ -0,0 +1,17 @@
This file presents modules dependency graph for the test (classes).
Please, use monospaced font.
common-1
/ \
/ \
/ \
/ \
/ \
common-2-1 common-2-2
\ /
\ /
\ /
\ /
\ /
\ /
jvm
@@ -0,0 +1,23 @@
package sample
interface B : A
fun testA(x: A) {
x.foo()
x.bar()
x.<!UNRESOLVED_REFERENCE("baz")!>baz<!>()
take_A_common_1(x)
take_A_common_2_1(x)
take_A_common_2_2(x)
}
fun testB(x: B) {
x.foo()
x.bar()
x.<!UNRESOLVED_REFERENCE("baz")!>baz<!>()
take_A_common_1(x)
take_A_common_2_1(x)
take_A_common_2_2(x) // here we should have some error
}