blob: 00f939c4b4cf5b3d63e57e15cb057dc2601e7ae6 [file] [log] [blame]
lateinit var result1: String
lateinit var result2: String
class Test(val x: String) {
fun test(a: String) {
if (result1 != a) throw AssertionError("result1: $result1")
result2 = a
}
init {
fun test() {
fun test1() {
result1 = x
}
test1()
}
test()
}
}
fun box(): String {
val t = Test("OK")
t.test("OK")
return result2
}