868329e3cb
#KT-4462 Fixed #KT-4681 Fixed
15 lines
180 B
Kotlin
Vendored
15 lines
180 B
Kotlin
Vendored
class Bar {
|
|
fun invoke(x: Int): Int = x
|
|
}
|
|
|
|
class Foo {
|
|
val get: Bar = Bar()
|
|
}
|
|
|
|
fun test1(foo: Foo) {
|
|
foo[1]
|
|
}
|
|
|
|
fun test2(foo: Foo, get: Foo.(Int) -> Int) {
|
|
foo[1]
|
|
} |