Migrate boxMultiFile and boxMultifileClass tests to new multi-file tests
AbstractCompileKotlinAgainstMultifileKotlinTest is broken in this commit; will be fixed later
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// FILE: a.kt
|
||||
|
||||
package a
|
||||
|
||||
import b.*
|
||||
|
||||
class B {
|
||||
companion object : A() {}
|
||||
|
||||
init {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
B()
|
||||
return result
|
||||
}
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
package b
|
||||
|
||||
var result = "fail"
|
||||
|
||||
abstract class A {
|
||||
protected fun foo() {
|
||||
result = "OK"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user