summaryrefslogtreecommitdiff
path: root/test/files/run/t4122.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4122.scala')
-rw-r--r--test/files/run/t4122.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t4122.scala b/test/files/run/t4122.scala
new file mode 100644
index 0000000000..5ff570c009
--- /dev/null
+++ b/test/files/run/t4122.scala
@@ -0,0 +1,14 @@
+object Test {
+ val sw: Seq[Char] = "ab"
+ val sw2: Seq[Char] = Array('a', 'b')
+ val sw3 = Seq('a', 'b')
+ val sw4 = "ab".toList
+ val all = List(sw, sw2, sw3, sw4)
+
+ def main(args: Array[String]): Unit = {
+ for (s1 <- all ; s2 <- all) {
+ assert(s1 == s2, s1 + " != " + s2)
+ assert(s1.## == s2.##, s1 + ".## != " + s2 + ".##")
+ }
+ }
+}