LHS of qualified expressions are determined manually

ExpressionPosition is useless now and will be dropped

 #KT-3866 Fixed
This commit is contained in:
Alexander Udalov
2013-11-14 23:33:55 +04:00
parent e8089cc461
commit 838c408e68
5 changed files with 48 additions and 13 deletions
@@ -0,0 +1,21 @@
open class C {
}
fun C.foo() {}
open class X {
class object : C() {}
}
open class Y {
class object : C() {}
}
fun bar() {
val x = X
x.foo()
X.foo()
(X : C).foo()
(X <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as<!> C).foo()
((if (1<2) X else Y) : C).foo()
}