Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/IfThenElseBothInvalid.jet
T
2012-06-15 17:06:41 +04:00

17 lines
259 B
Plaintext

fun bar(x: Int): Int = x + 1
fun foo() {
val x: Int? = null
bar(<!TYPE_MISMATCH!>x<!>)
if (x != 2) {
if (x == null) return
2+<!SYNTAX!><!>
}
else {
if (x == null) return
2+<!SYNTAX!><!>
}
bar(x)
}