summaryrefslogtreecommitdiff
path: root/test/disabled/neg/macro-deprecate-idents.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-04-13 19:15:13 -0700
committerMartin Odersky <odersky@gmail.com>2012-04-13 19:15:13 -0700
commitb2991c6676fdf024eb53bbaeeedf86f315523798 (patch)
tree2ae6686e16f301f7edc67a1fb2e69767856c8246 /test/disabled/neg/macro-deprecate-idents.scala
parentc26f2ae86bb8ecdfc07787c1ad66350c6cb8b36b (diff)
downloadscala-b2991c6676fdf024eb53bbaeeedf86f315523798.tar.gz
scala-b2991c6676fdf024eb53bbaeeedf86f315523798.tar.bz2
scala-b2991c6676fdf024eb53bbaeeedf86f315523798.zip
one more macro test sdisabled that lipped through the net before.
Diffstat (limited to 'test/disabled/neg/macro-deprecate-idents.scala')
-rw-r--r--test/disabled/neg/macro-deprecate-idents.scala56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/disabled/neg/macro-deprecate-idents.scala b/test/disabled/neg/macro-deprecate-idents.scala
new file mode 100644
index 0000000000..23c398e341
--- /dev/null
+++ b/test/disabled/neg/macro-deprecate-idents.scala
@@ -0,0 +1,56 @@
+object Test1 {
+ val macro = ???
+}
+
+object Test2 {
+ var macro = ???
+}
+
+object Test3 {
+ type macro = Int
+}
+
+package test4 {
+ class macro
+}
+
+object Test5 {
+ class macro
+}
+
+package test6 {
+ object macro
+}
+
+object Test7 {
+ object macro
+}
+
+package test8 {
+ trait macro
+}
+
+object Test9 {
+ trait macro
+}
+
+package macro {
+ package macro.bar {
+ }
+}
+
+package foo {
+ package macro.foo {
+ }
+}
+
+object Test12 {
+ val Some(macro) = Some(42)
+ macro match {
+ case macro => println(macro)
+ }
+}
+
+object Test13 {
+ def macro = 2
+} \ No newline at end of file