[FIR] Resolve array literals in independent context

This commit is contained in:
Dmitriy Novozhilov
2021-04-15 17:12:41 +03:00
parent cc0f28b698
commit 564de2790f
10 changed files with 66 additions and 26 deletions
@@ -1,12 +1,12 @@
// !WITH_NEW_INFERENCE
fun test(): Array<Int> {
[1, 2]
[1, 2]<!NO_GET_METHOD!>[0]<!>
[1, 2].<!UNRESOLVED_REFERENCE!>get<!>(0)
[1, 2][0]
[1, 2].get(0)
foo([""])
val p = [1, 2] + [3, 4]
val p = [1, 2] <!UNRESOLVED_REFERENCE!>+<!> [3, 4]
return [1, 2]
}