Files
kotlin/compiler/testData/codegen/patternMatching/matchNotNullAgainstNullable.kt
2012-07-20 17:43:38 +04:00

8 lines
128 B
Kotlin

fun foo(i: Int, j: Int?): String =
when (i) {
j -> "OK"
else -> "Fail"
}
fun box(): String = foo(0, 0)