aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2014-12-31 15:14:25 +0100
committerDmitry Petrashko <dark@d-d.me>2014-12-31 15:14:25 +0100
commit344b055e23ceea6fd57d6240f5dda732e41028bd (patch)
treeede7b173791fc5bee987b720e57739ccda4a81de /tests/pos
parent7b5d1b161009e76badaefd7a83ff243d6096498e (diff)
parent43fefd527e3ec424a6b1232aed63b50dd6a71342 (diff)
downloaddotty-344b055e23ceea6fd57d6240f5dda732e41028bd.tar.gz
dotty-344b055e23ceea6fd57d6240f5dda732e41028bd.tar.bz2
dotty-344b055e23ceea6fd57d6240f5dda732e41028bd.zip
Merge pull request #310 from dotty-staging/fix/#305-annot-bootstrap
Fix/#305 annot bootstrap
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/annot-bootstrap.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/annot-bootstrap.scala b/tests/pos/annot-bootstrap.scala
new file mode 100644
index 000000000..bef877dcd
--- /dev/null
+++ b/tests/pos/annot-bootstrap.scala
@@ -0,0 +1,8 @@
+package scala.annotation.unchecked
+
+// note: if the case class is not inside an object, the error disappears
+object test {
+ case class L(a: Int)
+}
+
+final class uncheckedVariance extends scala.annotation.StaticAnnotation {}