Files
kotlin-fork/compiler/testData/cfg/conventions/setViaVar.kt
T
2015-05-26 19:28:07 +03:00

15 lines
195 B
Kotlin
Vendored

class Bar {
fun invoke(x: Int, y: Int) {}
}
class Foo {
val set: Bar = Bar()
}
fun test1(foo: Foo) {
foo[1] = 2
}
fun test2(foo: Foo, set: Foo.(Int, Int) -> Int) {
foo[1] = 2
}