Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.kt
T
2015-10-17 14:45:53 +03:00

12 lines
201 B
Kotlin
Vendored

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