added a test case for KT-1718

This commit is contained in:
James Strachan
2012-04-03 16:16:08 +01:00
parent 4ba851f5c5
commit 5df7258708
+6 -2
View File
@@ -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")