summaryrefslogtreecommitdiff
path: root/test/files/run/t5753_2/Test_2.scala
diff options
context:
space:
mode:
authormartende <entcrd@yahoo.com>2012-11-27 14:08:53 +0100
committermartende <entcrd@yahoo.com>2012-11-27 14:08:53 +0100
commit597a949e8700d585dc89979b66375367ac73acc2 (patch)
tree1f8e967bf4d82c26d20ae0e3ce293509fab1750b /test/files/run/t5753_2/Test_2.scala
parent2a8291a3568abc848e79acaacd82e90932a77c8a (diff)
downloadscala-597a949e8700d585dc89979b66375367ac73acc2.tar.gz
scala-597a949e8700d585dc89979b66375367ac73acc2.tar.bz2
scala-597a949e8700d585dc89979b66375367ac73acc2.zip
SI-5753 macros cannot be loaded when inherited from a class or a trait
enclClass should be taken from Tree otherwise we can jump to declaration class/trait.
Diffstat (limited to 'test/files/run/t5753_2/Test_2.scala')
-rw-r--r--test/files/run/t5753_2/Test_2.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/t5753_2/Test_2.scala b/test/files/run/t5753_2/Test_2.scala
new file mode 100644
index 0000000000..a2777638bc
--- /dev/null
+++ b/test/files/run/t5753_2/Test_2.scala
@@ -0,0 +1,4 @@
+object Test extends App {
+ import Macros._
+ println(foo(42))
+} \ No newline at end of file