We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca291e commit 51ef16fCopy full SHA for 51ef16f
test/files/run/t5816.check
@@ -0,0 +1 @@
1
+5.+(Test.this.y)
test/files/run/t5816.scala
@@ -0,0 +1,17 @@
+import scala.reflect.runtime.universe._
2
+import scala.reflect.runtime.{currentMirror => cm}
3
+import scala.tools.reflect.ToolBox
4
+
5
+object Test extends App {
6
+ val toolbox = cm.mkToolBox()
7
8
+ def printSource[T](expr: Expr[T]) {
9
+ val ttree = toolbox typeCheck expr.tree
10
+ println(ttree.toString)
11
+ }
12
13
+ var y = 3
14
+ printSource(reify {
15
+ 5 + y
16
+ })
17
+}
0 commit comments