[FIR] Implement FUNCTION_EXPECTED

This commit is contained in:
Ivan Kochurkin
2021-06-29 22:06:44 +03:00
parent 263e40e753
commit 2574dc907c
32 changed files with 146 additions and 58 deletions
@@ -1,5 +1,5 @@
FILE: main.kt
public final fun test(ann: R|Ann|): R|kotlin/Unit| {
R|<local>/ann|.R|/Ann.value|
R|<local>/ann|.<Unresolved name: value>#()
R|<local>/ann|.<Expression 'value' of type 'kotlin/String' cannot be invoked as a function>#()
}
@@ -3,12 +3,12 @@
// FILE: Ann.java
public @interface Ann {
String value()
String value();
}
// FILE: main.kt
fun test(ann: Ann) {
ann.value
ann.<!UNRESOLVED_REFERENCE!>value<!>() // should be an error
ann.<!FUNCTION_EXPECTED!>value<!>() // should be an error
}