Files
kotlin-fork/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt
T
2021-05-25 13:28:27 +03:00

16 lines
389 B
Kotlin
Vendored

fun test(): Array<Int> {
<!UNSUPPORTED!>[1, 2]<!>
<!UNSUPPORTED!>[1, 2]<!>[0]
<!UNSUPPORTED!>[1, 2]<!>.get(0)
foo(<!UNSUPPORTED!>[""]<!>)
val p = <!UNSUPPORTED!>[1, 2]<!> <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>+<!> [3, 4]
return <!UNSUPPORTED!>[1, 2]<!>
}
fun foo(a: Array<String> = <!UNSUPPORTED!>[""]<!>) {}
class A(val a: Array<Int> = <!UNSUPPORTED!>[]<!>)