Captured value initialization is no more allowed #KT-10445 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
fun foo() {
|
||||
var x: Int
|
||||
fun bar() {
|
||||
x = 42
|
||||
}
|
||||
<!UNINITIALIZED_VARIABLE!>x<!>.hashCode()
|
||||
bar()
|
||||
}
|
||||
Reference in New Issue
Block a user