Files
kotlin-fork/compiler/testData/codegen/boxError/semantic/missedBody.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
229 B
Kotlin
Vendored

// ERROR_POLICY: SEMANTIC
// FILE: t.kt
fun bar(a: String, b: String): String
fun foo(): String {
return bar("O", "K")
}
// FILE: b.kt
fun box(): String {
val r = foo()
if (r is String) return r
return "OK"
}