K1/K2: add more tests regarding SequencedCollection.add/remove calls
Related to KT-64640
This commit is contained in:
committed by
Space Team
parent
0ef41d75b5
commit
ae358fe194
@@ -7,3 +7,16 @@ fun bar(x: List<String>) {
|
||||
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()
|
||||
|
||||
x.addFirst("")
|
||||
x.addLast("")
|
||||
x.removeFirst()
|
||||
x.removeLast()
|
||||
}
|
||||
|
||||
@@ -7,3 +7,16 @@ fun bar(x: List<String>) {
|
||||
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()
|
||||
|
||||
x.addFirst("")
|
||||
x.addLast("")
|
||||
x.removeFirst()
|
||||
x.removeLast()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user