Files
kotlin-fork/compiler/testData/diagnostics/tests/collectionLiterals/resolveToFunctionFromBuiltIns.kt
T
Dmitriy Novozhilov c1575edca4 [FE 1.0] Drop ArrayLiteralsInAnnotations feature
This feature was introduced in 1.2, so now it's stable part of language
  and we can drop support of disabling it
2022-01-14 14:26:50 +03:00

19 lines
380 B
Kotlin
Vendored

// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_VARIABLE, -UNSUPPORTED
annotation class Anno(val a: Array<String> = [""], val b: IntArray = [])
@Anno([], [])
fun test() {}
fun arrayOf(): Array<Int> = TODO()
fun intArrayOf(): Array<Int> = TODO()
fun local() {
val a1: IntArray = [1, 2]
val a2: IntArray = []
val s1: Array<String> = [""]
val s2: Array<String> = []
}