Support test with self imports, kotlin multifile tests

This commit is contained in:
Michael Bogdanov
2016-04-29 12:45:15 +03:00
parent 0f110b049b
commit e2ae2f313c
9 changed files with 195 additions and 76 deletions
@@ -1,12 +1,13 @@
// FILE: A.kt
package first
import second.C
open class A {
protected open fun test(): String = "FAIL (A)"
}
fun box() = second.C().value()
fun box() = C().value()
// FILE: B.kt
@@ -28,5 +28,5 @@ fun box(): String {
foo2()().run()
return test.sideEffects
return sideEffects
}
@@ -17,6 +17,6 @@ import a.foo
import a.inlineOnly
fun box(): String {
if (!a.inlineOnly<String>("OK")) return "fail 1"
if (!inlineOnly<String>("OK")) return "fail 1"
return foo { "OK" }
}
@@ -15,6 +15,6 @@ import a.foo
import a.inlineOnly
fun box(): String {
if (!a.inlineOnly<String>("OK")) return "fail 1"
if (!inlineOnly<String>("OK")) return "fail 1"
return foo { "OK" }
}