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

13 lines
184 B
Kotlin
Vendored

class Bar {
fun invoke(x: Int): Int = x
fun invoke(x: Int, y: Int) {}
}
class Foo {
val get: Bar = Bar()
val set: Bar = Bar()
}
fun test(foo: Foo) {
foo[1] += 2
}