[FIR-TEST] Add new testdata generated after changes in previous commit

This commit is contained in:
Dmitriy Novozhilov
2019-12-11 16:16:22 +03:00
parent e9c02a1cca
commit 2536fa0cd5
4578 changed files with 104067 additions and 1 deletions
@@ -0,0 +1,24 @@
// !WITH_NEW_INFERENCE
// !CHECK_TYPE
// !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED
fun test() {
val a = []
val b: Array<Int> = []
val c = [1, 2]
val d: Array<Int> = [1, 2]
val e: Array<String> = [1]
val f: IntArray = [1, 2]
val g = [f]
}
fun check() {
[1, 2] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<Int>>() }
[""] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<String>>() }
val f: IntArray = [1]
[f] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<IntArray>>() }
[1, ""] checkType { <!UNRESOLVED_REFERENCE!>_<!><Array<Any>>() }
}