Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.kt
T
2015-09-25 19:20:20 +03:00

12 lines
152 B
Kotlin
Vendored

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