Files
kotlin-fork/compiler/testData/cfg-variables/basic/UseUninitializedInLambda.kt
T
Mikhail Glukhikh fe13f39de9 Use of uninitialized variables in lambdas / object literals / local functions is forbidden now #KT-4475 Fixed
Local declarations CFA: variable initialization information before them is now taken into account
2015-11-17 18:21:09 +03:00

7 lines
84 B
Kotlin
Vendored

fun bar(f: () -> Unit) = f()
fun foo() {
var v: Any
bar { v.hashCode() }
}