[FIR] Don't assume types with not found symbol as error types

This commit is contained in:
Dmitriy Novozhilov
2020-09-10 15:47:02 +03:00
parent 7f692be11e
commit 1dc3c93efa
59 changed files with 330 additions and 323 deletions
@@ -0,0 +1,5 @@
// !FULL_JDK
fun test(map: MutableMap<Int, MutableMap<Int, Int>>) {
map.getOrPut(1, ::mutableMapOf)
}
@@ -0,0 +1,4 @@
FILE: getOrPutAmbiguity.kt
public final fun test(map: R|kotlin/collections/MutableMap<kotlin/Int, kotlin/collections/MutableMap<kotlin/Int, kotlin/Int>>|): R|kotlin/Unit| {
R|<local>/map|.R|kotlin/collections/getOrPut|<R|kotlin/Int|, R|kotlin/collections/MutableMap<kotlin/Int, kotlin/Int>|>(Int(1), ::R|kotlin/collections/mutableMapOf<kotlin/Int, kotlin/Int>|)
}