do not need to check stand-alone class object for class,

when it's on the left hand side of dot it is analyzed in 'getIdForImplicitReceiver' (test added)
This commit is contained in:
Svetlana Isakova
2013-07-05 18:02:28 +04:00
parent 9fd8a8d497
commit d3e6d2d6cd
3 changed files with 27 additions and 4 deletions
@@ -0,0 +1,22 @@
open class T {
val x : Int? = null
}
class A {
class object: T() {
}
}
class B {
class object: T() {
}
}
fun test() {
if (A.x != null) {
useInt(A.x)
useInt(<!TYPE_MISMATCH!>B.x<!>)
}
}
fun useInt(i: Int) = i