Prepare test data for removal of separate test configurations for JDK 21
^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.
This commit is contained in:
committed by
Space Team
parent
8ed806ebe0
commit
13b3987aab
+21
@@ -0,0 +1,21 @@
|
||||
// ISSUE: KT-64640
|
||||
|
||||
fun bar(x: List<String>) {
|
||||
x.<!UNRESOLVED_REFERENCE!>addFirst<!>("")
|
||||
x.<!UNRESOLVED_REFERENCE!>addLast<!>("")
|
||||
x.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>removeFirst<!>()
|
||||
x.<!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>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()
|
||||
}
|
||||
Reference in New Issue
Block a user