diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-14 10:33:10 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-14 11:33:56 +0200 |
commit | 0ba3d542cc236ab2dbed3dc551920ede94787a0c (patch) | |
tree | 9e7e6e0c26a8d2f8e5b62fbf2a609349acbd8855 /test/files/neg/macro-deprecate-idents.scala | |
parent | 3a2901da406f2478b5634b0636e56de9c4cd676d (diff) | |
download | scala-0ba3d542cc236ab2dbed3dc551920ede94787a0c.tar.gz scala-0ba3d542cc236ab2dbed3dc551920ede94787a0c.tar.bz2 scala-0ba3d542cc236ab2dbed3dc551920ede94787a0c.zip |
restores some disabled macro tests, makes checkFeature synchronous when used for macros
Diffstat (limited to 'test/files/neg/macro-deprecate-idents.scala')
-rw-r--r-- | test/files/neg/macro-deprecate-idents.scala | 56 |
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 |