868329e3cb
#KT-4462 Fixed #KT-4681 Fixed
13 lines
157 B
Kotlin
Vendored
13 lines
157 B
Kotlin
Vendored
class Bar {
|
|
fun invoke(x: Int, y: Int) {}
|
|
}
|
|
|
|
class Foo {
|
|
val set: Bar = Bar()
|
|
}
|
|
|
|
fun Foo.get(x: Int): Int = x
|
|
|
|
fun test(foo: Foo) {
|
|
foo[1] += 2
|
|
} |