13b3987aab
^KT-58765 Now that JDK 21 was released as stable, we can remove separate test configurations for testing the compiler with JDK 21 and reintegrate the corresponding test data into standard test configurations.
22 lines
506 B
Kotlin
Vendored
22 lines
506 B
Kotlin
Vendored
// ISSUE: KT-64640
|
|
|
|
fun bar(x: List<String>) {
|
|
x.<!UNRESOLVED_REFERENCE!>addFirst<!>("")
|
|
x.<!UNRESOLVED_REFERENCE!>addLast<!>("")
|
|
x.<!UNRESOLVED_REFERENCE!>removeFirst<!>()
|
|
x.<!UNRESOLVED_REFERENCE!>removeLast<!>()
|
|
}
|
|
|
|
// Additional test for other SequenceCollection inheritor
|
|
fun baz(x: ArrayDeque<String>, y: LinkedHashSet<String>) {
|
|
x.addFirst("")
|
|
x.addLast("")
|
|
x.removeFirst()
|
|
x.removeLast()
|
|
|
|
y.addFirst("")
|
|
y.addLast("")
|
|
y.removeFirst()
|
|
y.removeLast()
|
|
}
|