1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
17 lines
249 B
Kotlin
17 lines
249 B
Kotlin
open class X(private val n: String) {
|
|
|
|
fun foo(): String {
|
|
return object : X("inner") {
|
|
fun print(): String {
|
|
return n;
|
|
}
|
|
}.print()
|
|
}
|
|
}
|
|
|
|
|
|
fun box() : String {
|
|
return X("OK").foo()
|
|
}
|
|
|