1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
16 lines
222 B
Kotlin
16 lines
222 B
Kotlin
interface T {
|
|
fun result(): String
|
|
}
|
|
|
|
class A(val x: String) {
|
|
fun getx() = x
|
|
|
|
fun foo() = object : T {
|
|
val bar = getx()
|
|
|
|
override fun result() = bar
|
|
}
|
|
}
|
|
|
|
fun box() = A("OK").foo().result()
|