aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-17 20:41:13 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-17 20:42:34 +0200
commit7c0c1f31fda704e790ca7a9d260c8c956b28d447 (patch)
tree6341947156c34e905f0a845a75d6056771e11d9a /tests/neg
parentdfa32801f5b2c774a8c792353c1bf1d1781a4a0e (diff)
downloaddotty-7c0c1f31fda704e790ca7a9d260c8c956b28d447.tar.gz
dotty-7c0c1f31fda704e790ca7a9d260c8c956b28d447.tar.bz2
dotty-7c0c1f31fda704e790ca7a9d260c8c956b28d447.zip
Fix typing of match expressions
Allow matches between unapply types and selector type where a possible overlap might exist.
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i1212.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/neg/i1212.scala b/tests/neg/i1212.scala
new file mode 100644
index 000000000..b009a4d2c
--- /dev/null
+++ b/tests/neg/i1212.scala
@@ -0,0 +1 @@
+@ann class ann extends scala.annotation.Annotation // error: cyclic reference