Support for new double colon expressions in type checker

Despite the fact that the LHS of a double colon expression is now KtExpression
instead of KtUserType, we must still consider it a type for callable references
to work. Extract and reuse relevant parts of QualifiedExpressionResolver and
TypeResolver to support this behavior
This commit is contained in:
Alexander Udalov
2016-04-21 18:44:07 +03:00
parent b5388d6a43
commit 693c753988
16 changed files with 445 additions and 107 deletions
@@ -3,7 +3,7 @@
class A
val a1 = <!CLASS_LITERAL_LHS_NOT_A_CLASS!>A?::class<!>
val a2 = <!CLASS_LITERAL_LHS_NOT_A_CLASS!>A?<!REDUNDANT_NULLABLE!>?<!>::class<!>
val a2 = <!CLASS_LITERAL_LHS_NOT_A_CLASS!>A??::class<!>
val l1 = <!CLASS_LITERAL_LHS_NOT_A_CLASS!>List<String>?::class<!>
val l2 = <!CLASS_LITERAL_LHS_NOT_A_CLASS!>List?::class<!>