[FIR] Implement FUNCTION_EXPECTED
This commit is contained in:
+1
-1
@@ -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>#()
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user