Files
kotlin-fork/compiler/testData/codegen/boxError/semantic/unresolvedFunctionReferece.kt
T
Roman Artemev 0bff406a12 [JS IR] Add infra to test compilation with error
- add bunch of tests
 - fix help test
2020-09-01 14:53:08 +03:00

17 lines
209 B
Kotlin
Vendored

// ERROR_POLICY: SEMANTIC
// FILE: t.kt
fun foo() { bar() }
// FILE: b.kt
fun box(): String {
try {
foo()
} catch (e: IllegalStateException) {
return "OK"
}
return "FAIL"
}