Files
kotlin-fork/compiler/testData/diagnostics/tests/controlStructures/emptyIf.fir.kt
T
2020-02-04 15:00:12 +03:00

16 lines
193 B
Kotlin
Vendored

fun foo(x: Unit) = x
fun test() {
if (false);
if (true);
val x = if (false);
foo(x)
val y: Unit = if (false);
foo(y)
foo({if (1==1);}())
return if (true);
}