aboutsummaryrefslogtreecommitdiff
path: root/tests/disabled/macro/run/t5816.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/disabled/macro/run/t5816.scala')
-rw-r--r--tests/disabled/macro/run/t5816.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t5816.scala b/tests/disabled/macro/run/t5816.scala
new file mode 100644
index 000000000..4c2a5bcb7
--- /dev/null
+++ b/tests/disabled/macro/run/t5816.scala
@@ -0,0 +1,17 @@
+import scala.reflect.runtime.universe._
+import scala.reflect.runtime.{currentMirror => cm}
+import scala.tools.reflect.ToolBox
+
+object Test extends dotty.runtime.LegacyApp {
+ val toolbox = cm.mkToolBox()
+
+ def printSource[T](expr: Expr[T]): Unit = {
+ val ttree = toolbox typecheck expr.tree
+ println(ttree.toString)
+ }
+
+ var y = 3
+ printSource(reify {
+ 5 + y
+ })
+}