'this' is resolved to the corresponding declaration in labeled function literals

This commit is contained in:
Andrey Breslav
2011-05-30 16:02:51 +04:00
parent 2052683de3
commit a676c960cf
10 changed files with 105 additions and 29 deletions
+2
View File
@@ -8,6 +8,8 @@ namespace qualified_this {
~xx~val Int.xx = `xx`this : Int
~xx()~fun Int.xx() {
`xx()`this : Int
val a = {Int.() => `xx()`this`xx()`@xx + this}
}
}
}