Captured value initialization is no more allowed #KT-10445 Fixed
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Make variable mutable" "true"
|
||||
fun exec(f: () -> Unit) = f()
|
||||
|
||||
fun foo() {
|
||||
val x: Int
|
||||
exec {
|
||||
<caret>x = 42
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user