load 'this' instead of $classobj if we're inside class object's constructor
#KT-2384 Fixed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user