diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-09 08:54:10 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-09 08:54:10 -0700 |
commit | 7ca76c8b3bef2d46333b4571806b126533239cda (patch) | |
tree | b8e1505229add5ec116ca7ff682078c8e5c64c37 /test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala | |
parent | 859ec02495993f225647df50397b042a3172351b (diff) | |
parent | 49dcb8ff33483949cecce671a2d87676cefa457f (diff) | |
download | scala-7ca76c8b3bef2d46333b4571806b126533239cda.tar.gz scala-7ca76c8b3bef2d46333b4571806b126533239cda.tar.bz2 scala-7ca76c8b3bef2d46333b4571806b126533239cda.zip |
Merge pull request #1458 from scalamacros/pullrequest/reflection
Another reflection bomb
Diffstat (limited to 'test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala')
-rw-r--r-- | test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala b/test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala index 089f30f389..adecfcff17 100644 --- a/test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala +++ b/test/files/run/macro-reflective-mamd-normal-mi/Macros_Test_2.scala @@ -11,7 +11,7 @@ object Test extends App { val macrobody = Select(Ident(newTermName("Impls")), newTermName("foo")) val macroparam = ValDef(NoMods, newTermName("x"), TypeTree(definitions.IntClass.toType), EmptyTree) val macrodef = DefDef(Modifiers(MACRO), newTermName("foo"), Nil, List(List(macroparam)), TypeTree(), macrobody) - val modulector = DefDef(NoMods, nme.CONSTRUCTOR, Nil, List(List()), TypeTree(), Block(Apply(Select(Super(This(EmptyTypeName), EmptyTypeName), nme.CONSTRUCTOR), List()))) + val modulector = DefDef(NoMods, nme.CONSTRUCTOR, Nil, List(List()), TypeTree(), Block(Apply(Select(Super(This(tpnme.EMPTY), tpnme.EMPTY), nme.CONSTRUCTOR), List()))) val module = ModuleDef(NoMods, newTermName("Macros"), Template(Nil, emptyValDef, List(modulector, macrodef))) val macroapp = Apply(Select(Ident("Macros"), newTermName("foo")), List(Literal(Constant(42)))) val tree = Block(macrodef, module, macroapp) |