Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.kt
T

14 lines
197 B
Kotlin
Vendored

// FIR_IDENTICAL
interface A
interface Foo {
operator fun A.invoke()
}
fun test(a: A, foo: Foo) {
a.<!UNRESOLVED_REFERENCE!>foo<!>()
}
fun test(a: Int, foo: Int.()->Unit) {
a.foo()
}