16 lines
193 B
Kotlin
Vendored
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);
|
|
} |