Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/whenInference.kt
T
2020-12-16 19:52:30 +03:00

10 lines
147 B
Kotlin
Vendored

fun <T> materialize(): T = throw Exception()
interface A
fun takeA(a: A) {}
fun test() {
takeA(if(true) materialize() else materialize())
}