Properly capture local functions

Local functions in local classed wasn't captured properly
This commit is contained in:
Mikhael Bogdanov
2013-03-26 20:15:06 +04:00
parent 8f6c9d73b1
commit ad4eeb3f8a
10 changed files with 94 additions and 21 deletions
@@ -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"
}