added a test case for KT-1718
This commit is contained in:
@@ -267,9 +267,13 @@ class CollectionTest {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
TODO compiler fails on this one
|
TODO compiler fails on this one
|
||||||
|
KT-1718
|
||||||
val list = arrayList("foo", "bar") + arrayList("cheese", "wine")
|
test fun plusCollectionBug() {
|
||||||
|
val list = arrayList("foo", "bar") + arrayList("cheese", "wine")
|
||||||
|
assertEquals(arrayList("foo", "bar", "cheese", "wine"), list)
|
||||||
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
test fun plusCollection() {
|
test fun plusCollection() {
|
||||||
val a = arrayList("foo", "bar")
|
val a = arrayList("foo", "bar")
|
||||||
val b = arrayList("cheese", "wine")
|
val b = arrayList("cheese", "wine")
|
||||||
|
|||||||
Reference in New Issue
Block a user