aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0154.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-16 15:27:50 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-21 11:24:03 +0100
commitbb90b26fbca27f432ade46ae572b82e1b8027b19 (patch)
tree20da120bf3790ab18a9b6d8c02e44e682418db1c /tests/pos/t0154.scala
parenta7d47ab54cbfb324dec4ee1594e24738cd54113a (diff)
downloaddotty-bb90b26fbca27f432ade46ae572b82e1b8027b19.tar.gz
dotty-bb90b26fbca27f432ade46ae572b82e1b8027b19.tar.bz2
dotty-bb90b26fbca27f432ade46ae572b82e1b8027b19.zip
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.
Diffstat (limited to 'tests/pos/t0154.scala')
-rw-r--r--tests/pos/t0154.scala10
1 files changed, 10 insertions, 0 deletions
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 _ =>
+ }
+ }
+}