diff options
Diffstat (limited to 'tests/pos/i947.scala')
-rw-r--r-- | tests/pos/i947.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/i947.scala b/tests/pos/i947.scala new file mode 100644 index 000000000..0f2d9e775 --- /dev/null +++ b/tests/pos/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 + } + + + } +} |