Properly capture local functions
Local functions in local classed wasn't captured properly
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Test {
|
||||
|
||||
val property:Int
|
||||
;{
|
||||
fun local():Int {
|
||||
return 10;
|
||||
}
|
||||
property = local();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return if (Test().property == 10) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user