load 'this' instead of $classobj if we're inside class object's constructor

#KT-2384 Fixed
This commit is contained in:
Alexander Udalov
2012-07-09 22:11:02 +04:00
parent 3d8c6065c5
commit a07954eaac
3 changed files with 26 additions and 2 deletions
@@ -0,0 +1,15 @@
class A {
class object {
val b = 0
val c = b
{
val d = b
}
}
}
fun box(): String {
A()
return if (A.c == A.b) "OK" else "Fail"
}