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

11 lines
222 B
Kotlin
Vendored

// FIR_IDENTICAL
// NI_EXPECTED_FILE
val test1 = { if (true) 1 else "" }
val test2 = { { if (true) 1 else "" } }
val test3: (Boolean) -> Any = { if (it) 1 else "" }
val test4: (Boolean) -> Any? = { if (it) 1 else "" }