KT-394 Make class object members visible inside the owning class

KT-588 Unresolved static method
This commit is contained in:
Andrey Breslav
2011-11-23 20:27:38 +03:00
parent ba700ebdbe
commit 9cb0cc9fa6
7 changed files with 78 additions and 24 deletions
@@ -0,0 +1,11 @@
// KT-394 Make class object members visible inside the owning class
class X() {
// class Y {}
class object{
class Y() {}
}
val y : Y = Y()
}
@@ -0,0 +1,12 @@
// KT-588 Unresolved static method
class Test() : Thread("Test") {
class object {
fun init2() {
}
}
override fun run() {
init2() // unresolved
Test.init2() // ok
}
}