Files
kotlin-fork/compiler/testData/diagnostics/tests/incompleteCode/kt2014.fir.kt
T
2021-07-28 23:17:31 +03:00

21 lines
389 B
Kotlin
Vendored

//KT-2014 Better diagnostic when using property syntax to call a method
package c
class Foo {
fun prop() : Int = 1
fun bar(i: Int) : Int = i
val a : Int = 1
}
fun x(f : Foo) {
f.<!FUNCTION_CALL_EXPECTED!>prop<!>
f.<!FUNCTION_CALL_EXPECTED!>bar<!>
f.<!FUNCTION_EXPECTED!>a<!>()
<!UNRESOLVED_REFERENCE!>c<!>()
<!INVISIBLE_REFERENCE!>R<!>()
}
object R {}