Migrate CompileKotlinAgainstKotlin test to multi-file framework

This commit is contained in:
Alexander Udalov
2016-02-24 12:02:25 +03:00
committed by Alexander Udalov
parent 5884d4be79
commit cc8af573f9
69 changed files with 569 additions and 358 deletions
@@ -0,0 +1,20 @@
// FILE: A.kt
package pkg
interface ClassA {
companion object {
val DEFAULT = object : ClassA {
override fun toString() = "OK"
}
}
}
// FILE: B.kt
import pkg.ClassA
fun main(args: Array<String>) {
val obj = ClassA.DEFAULT
obj.toString()
}