summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-deprecate-idents.scala
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-04-12 21:58:55 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-04-12 21:58:55 +0200
commitcfc4757a580c537425857ff849f3dc106d924092 (patch)
tree5f33e5987bb5b3574016d52c59af58aa9d49abd2 /test/files/neg/macro-deprecate-idents.scala
parent27a978ab89a7e5036e55e072f7a5d09d8ea817e6 (diff)
downloadscala-cfc4757a580c537425857ff849f3dc106d924092.tar.gz
scala-cfc4757a580c537425857ff849f3dc106d924092.tar.bz2
scala-cfc4757a580c537425857ff849f3dc106d924092.zip
fixes petty macro tests
Diffstat (limited to 'test/files/neg/macro-deprecate-idents.scala')
-rw-r--r--test/files/neg/macro-deprecate-idents.scala56
1 files changed, 56 insertions, 0 deletions
diff --git a/test/files/neg/macro-deprecate-idents.scala b/test/files/neg/macro-deprecate-idents.scala
new file mode 100644
index 0000000000..23c398e341
--- /dev/null
+++ b/test/files/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