From b18c930965c0ca70e1fbd15674d042d83a38ef4e Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Wed, 13 Jan 2016 14:14:02 +0100 Subject: Test that #939 is fixed --- tests/pos/i939.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/pos/i939.scala (limited to 'tests/pos/i939.scala') 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) + } + } +} -- cgit v1.2.3