From 7c0c1f31fda704e790ca7a9d260c8c956b28d447 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 17 Jul 2016 20:41:13 +0200 Subject: Fix typing of match expressions Allow matches between unapply types and selector type where a possible overlap might exist. --- tests/neg/i1212.scala | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/neg/i1212.scala (limited to 'tests/neg') 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 -- cgit v1.2.3