Control-Flow: Fix pseudocode generation for combined get/set and invoke conventions

#KT-4462 Fixed
 #KT-4681 Fixed
This commit is contained in:
Alexey Sedunov
2015-05-19 15:09:03 +03:00
parent fa29e75add
commit 868329e3cb
15 changed files with 706 additions and 10 deletions
@@ -0,0 +1,15 @@
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
}