FIR: implement diagnostics for qualifier as stand-alone expression case

This commit is contained in:
Mikhail Glukhikh
2021-04-30 12:25:52 +03:00
parent 84ccf7bbb1
commit 80a449862e
38 changed files with 190 additions and 58 deletions
@@ -16,8 +16,8 @@ class E private constructor() {
}
}
val a = A
val a = <!NO_COMPANION_OBJECT!>A<!>
val <!EXPOSED_PROPERTY_TYPE!>b<!> = B
val c = C
val c = <!NO_COMPANION_OBJECT!>C<!>
val d = D
val e = E(42)
@@ -7,10 +7,10 @@ class C
fun test() {
val interface_as_fun = <!UNRESOLVED_REFERENCE!>A<!>()
val interface_as_val = A
val interface_as_val = <!NO_COMPANION_OBJECT!>A<!>
val object_as_fun = <!INVISIBLE_REFERENCE!>B<!>()
val class_as_val = C
val class_as_val = <!NO_COMPANION_OBJECT!>C<!>
}
fun <T> bar() {
@@ -9,10 +9,10 @@ object X {
fun testX() {
val interface_as_fun = X.<!UNRESOLVED_REFERENCE!>A<!>()
val interface_as_val = X.A
val interface_as_val = X.<!NO_COMPANION_OBJECT!>A<!>
val object_as_fun = X.<!INVISIBLE_REFERENCE!>B<!>()
val class_as_val = X.C
val class_as_val = X.<!NO_COMPANION_OBJECT!>C<!>
}
class Y {
@@ -24,10 +24,10 @@ class Y {
fun testY() {
val interface_as_fun = Y.<!UNRESOLVED_REFERENCE!>A<!>()
val interface_as_val = Y.A
val interface_as_val = Y.<!NO_COMPANION_OBJECT!>A<!>
val object_as_fun = Y.<!INVISIBLE_REFERENCE!>B<!>()
val class_as_val = Y.C
val class_as_val = Y.<!NO_COMPANION_OBJECT!>C<!>
}
fun test(x: X) {
@@ -9,7 +9,7 @@ val Int.foo: Int get() = 4
fun Int.extFun() = 4
fun String.test() {
some
<!EXPRESSION_EXPECTED_PACKAGE_FOUND!>some<!>
some.A()
"".<!INAPPLICABLE_CANDIDATE!>some<!>