12 lines
138 B
Kotlin
Vendored
12 lines
138 B
Kotlin
Vendored
|
|
|
|
fun x() {}
|
|
|
|
class Foo {
|
|
operator fun Int.invoke(): Foo = this@Foo
|
|
|
|
val x = 0
|
|
|
|
fun foo() = x() // should resolve to invoke
|
|
}
|