Files
kotlin-fork/compiler/testData/diagnostics/tests/collectionLiterals/noCollectionLiterals.kt
T
2017-11-29 02:54:26 +03:00

16 lines
515 B
Kotlin
Vendored

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