Var can be val: correct handling of initialization in lambda #KT-14065 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun run(f: () -> Unit) = f()
|
||||
|
||||
fun foo() {
|
||||
var a: Int
|
||||
|
||||
run {
|
||||
a = 20
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user