From bb90b26fbca27f432ade46ae572b82e1b8027b19 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 16 Mar 2014 15:27:50 +0100 Subject: Tests t01xx and t02xx Test t0288 moved to disabled due to lack of Java interop. Test t0273 fixed by relaxing double def condition: We only regard two definitions that define the same name and have exactly the same signature as double definitions. Previously, signatures that defined the same parameters were also excluded. --- tests/pos/t0154.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pos/t0154.scala (limited to 'tests/pos/t0154.scala') diff --git a/tests/pos/t0154.scala b/tests/pos/t0154.scala new file mode 100644 index 000000000..9fb943067 --- /dev/null +++ b/tests/pos/t0154.scala @@ -0,0 +1,10 @@ +package test +trait MyMatchers { + val StringMatch = new AnyRef {} + trait Something { + (null : AnyRef) match { + case (StringMatch) => + case _ => + } + } +} -- cgit v1.2.3