[FIR] Resolve array literals in independent context
This commit is contained in:
+3
-3
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user