diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-06-03 11:08:50 -0700 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-06-03 11:08:50 -0700 |
commit | 69887ddd682057c4787e2e4377830390faf8ecf1 (patch) | |
tree | 1158f24dd50dac397e867a6d2d861171e7335c4f /test/files/pos | |
parent | c1cd65bb5276b715141df6d09fc95b0c44d2b4c2 (diff) | |
parent | 82f0925b69db8b5f9a3b10f58926c574433ca423 (diff) | |
download | scala-69887ddd682057c4787e2e4377830390faf8ecf1.tar.gz scala-69887ddd682057c4787e2e4377830390faf8ecf1.tar.bz2 scala-69887ddd682057c4787e2e4377830390faf8ecf1.zip |
Merge pull request #2577 from scalamacros/pullrequest/paradise
Backport from paradise/macros
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t7461.check | 0 | ||||
-rw-r--r-- | test/files/pos/t7461/Macros_1.scala | 13 | ||||
-rw-r--r-- | test/files/pos/t7461/Test_2.scala | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t7461.check b/test/files/pos/t7461.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/pos/t7461.check diff --git a/test/files/pos/t7461/Macros_1.scala b/test/files/pos/t7461/Macros_1.scala new file mode 100644 index 0000000000..353dec66d7 --- /dev/null +++ b/test/files/pos/t7461/Macros_1.scala @@ -0,0 +1,13 @@ +import scala.reflect.macros.Context +import language.experimental.macros + +object Macros { + def impl(c: Context) = { + import c.universe._ + val wut = c.typeCheck(Select(Literal(Constant(10)), newTermName("$minus")), silent = true) + // println(showRaw(wut, printIds = true, printTypes = true)) + c.literalUnit + } + + def foo = macro impl +}
\ No newline at end of file diff --git a/test/files/pos/t7461/Test_2.scala b/test/files/pos/t7461/Test_2.scala new file mode 100644 index 0000000000..3839659c9a --- /dev/null +++ b/test/files/pos/t7461/Test_2.scala @@ -0,0 +1,3 @@ +class C { + def foo = Macros.foo +}
\ No newline at end of file |