FIR: strengthen resolution success check for augmented array set call

This commit removes some false ambiguities &
fixes compilation of tree-generator module with FIR
This commit is contained in:
Jinseong Jeon
2020-12-18 00:06:46 -08:00
committed by TeamCityServer
parent 9bf2dfaa02
commit 9c2d06cf70
8 changed files with 88 additions and 73 deletions
@@ -16,7 +16,14 @@ fun test1(a: Any) {
}
fun test2(a: Any) {
error("") /* ErrorCallExpression */
{ // BLOCK
val <<array>>: Any = a
val <<index_0>>: Function0<Unit> = local fun <anonymous>() {
return Unit
}
<<array>>.set(index = <<index_0>>, value = <<array>>.get(index = <<index_0>>).plus(other = 42))
}
}
fun test3(a: Any) {