Files
kotlin-fork/compiler/testData/codegen/boxError/syntax/arrowReference.kt
T
Marco Pennekamp dbb02a9bfb [FIR] Fir2IrJsResultsConverter: Compute hasErrors of backend input
- This allows us to re-enable 3 tests.
2022-12-08 13:01:17 +00:00

19 lines
265 B
Kotlin
Vendored

// IGNORE_ERRORS
// ERROR_POLICY: SYNTAX
// MODULE: lib
// FILE: t.kt
fun foo() { this->bar() }
// MODULE: main(lib)
// FILE: b.kt
fun box(): String {
try {
foo()
} catch (e: IllegalStateException) {
return "OK"
}
return "FAIL"
}