e39b69839b
Additional check for trivial constraints is needed to make lambda analysis before outer variable fixation to Nothing(?) ^KT-37627 Fixed
10 lines
233 B
Kotlin
Vendored
10 lines
233 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !LANGUAGE: +NewInference
|
|
// !DIAGNOSTICS: -NAME_SHADOWING -UNUSED_VARIABLE
|
|
|
|
fun foo(x: Int) {
|
|
val x = if (true) { // OI: Map<String, () → Int>?, NI: Nothing?, error
|
|
"" to { x }
|
|
} else { null }
|
|
}
|