diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-04-12 21:58:55 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-04-12 21:58:55 +0200 |
commit | cfc4757a580c537425857ff849f3dc106d924092 (patch) | |
tree | 5f33e5987bb5b3574016d52c59af58aa9d49abd2 /test/files/neg/macro-deprecate-dont-touch-backquotedidents.scala | |
parent | 27a978ab89a7e5036e55e072f7a5d09d8ea817e6 (diff) | |
download | scala-cfc4757a580c537425857ff849f3dc106d924092.tar.gz scala-cfc4757a580c537425857ff849f3dc106d924092.tar.bz2 scala-cfc4757a580c537425857ff849f3dc106d924092.zip |
fixes petty macro tests
Diffstat (limited to 'test/files/neg/macro-deprecate-dont-touch-backquotedidents.scala')
-rw-r--r-- | test/files/neg/macro-deprecate-dont-touch-backquotedidents.scala | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/test/files/neg/macro-deprecate-dont-touch-backquotedidents.scala b/test/files/neg/macro-deprecate-dont-touch-backquotedidents.scala new file mode 100644 index 0000000000..dee2f1de3b --- /dev/null +++ b/test/files/neg/macro-deprecate-dont-touch-backquotedidents.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 |