aboutsummaryrefslogtreecommitdiff
path: root/tests/patmat/i947.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patmat/i947.scala')
-rw-r--r--tests/patmat/i947.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/patmat/i947.scala b/tests/patmat/i947.scala
new file mode 100644
index 000000000..0f2d9e775
--- /dev/null
+++ b/tests/patmat/i947.scala
@@ -0,0 +1,16 @@
+object Test {
+
+ class c {
+
+ private var x: Int = 0
+
+ override def equals(other: Any) = other match {
+ case o: c => x == o.x
+ case xs: List[c] => false
+ case ys: List[d18383] => false
+ case _ => false
+ }
+
+
+ }
+}