12 lines
143 B
Kotlin
12 lines
143 B
Kotlin
interface A
|
|
interface Foo {
|
|
fun A.invoke()
|
|
}
|
|
|
|
fun test(a: A, foo: Foo) {
|
|
a.foo()
|
|
}
|
|
|
|
fun test(a: Int, foo: Int.()->Unit) {
|
|
a.foo()
|
|
} |