aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i939.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i939.scala')
-rw-r--r--tests/pos/i939.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/i939.scala b/tests/pos/i939.scala
new file mode 100644
index 000000000..720bf764c
--- /dev/null
+++ b/tests/pos/i939.scala
@@ -0,0 +1,8 @@
+object IntMap {
+ private case object Nil {
+ override def equals(that : Any) = that match {
+ case _: this.type => true
+ case _ => super.equals(that)
+ }
+ }
+}