Files
kotlin-fork/compiler/testData/codegen/box/properties/lateinit/exceptionGetter.kt
T
2018-06-09 19:15:38 +03:00

14 lines
215 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class A {
public lateinit var str: String
}
fun box(): String {
val a = A()
try {
a.str
} catch (e: RuntimeException) {
return "OK"
}
return "FAIL"
}