[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
@@ -12,7 +12,7 @@ fun basicTypes() {
}
fun basicTypesWithErrors() {
val a: IntArray = [1.0]
val b: ShortArray = [1.0]
val c: CharArray = ["a"]
}
val a: IntArray = <!INITIALIZER_TYPE_MISMATCH!>[1.0]<!>
val b: ShortArray = <!INITIALIZER_TYPE_MISMATCH!>[1.0]<!>
val c: CharArray = <!INITIALIZER_TYPE_MISMATCH!>["a"]<!>
}