Files
kotlin-fork/compiler/testData/diagnostics/tests/controlStructures/kt4310.kt
T
2021-05-25 13:28:27 +03:00

12 lines
193 B
Kotlin
Vendored

package f
fun test(a: Boolean, b: Boolean): Int {
return if(a) {
1
} else <!TYPE_MISMATCH!>{
<!INVALID_IF_AS_EXPRESSION!>if<!> (b) {
3
}
}<!>
}