// !WITH_NEW_INFERENCE // !CHECK_TYPE // !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED fun test() { val a = [] val b: Array = [] val c = [1, 2] val d: Array = [1, 2] val e: Array = [1] val f: IntArray = [1, 2] val g = [f] } fun check() { [1, 2] checkType { _>() } [""] checkType { _>() } val f: IntArray = [1] [f] checkType { _>() } [1, ""] checkType { _>() } }