support qualified this

This commit is contained in:
Dmitry Jemerov
2011-05-30 21:41:15 +04:00
parent 664eeb6d54
commit 0a1161f5c1
3 changed files with 37 additions and 8 deletions
@@ -0,0 +1,12 @@
class Outer() {
class Inner() {
val outer: Outer get() = this@Outer
}
public val x = new Inner()
}
fun box() {
val o = new Outer()
return if (o === o.x.outer) "OK" else "fail"
}