Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt41.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

12 lines
242 B
Kotlin
Vendored

// KT-41 Make functions with errors in returning statement return ERROR type and not Nothing
package kt41
fun aaa() =
6 <!UNRESOLVED_REFERENCE!>foo<!> 1
fun bbb() {
aaa()
<!UNUSED_EXPRESSION!>1<!> // Stupid error: unreachable code
}