diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-06-09 11:13:08 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-06-09 11:13:08 +0200 |
commit | 51ef16f2e963c27b988e2f1627dc4f6160641b9f (patch) | |
tree | 2337c5d0b5e060575ae5d6cee766f5b0c1b76855 /test | |
parent | fca291e6bbfb5c3e1eb1e0fd5715bf8b8b102804 (diff) | |
download | scala-51ef16f2e963c27b988e2f1627dc4f6160641b9f.tar.gz scala-51ef16f2e963c27b988e2f1627dc4f6160641b9f.tar.bz2 scala-51ef16f2e963c27b988e2f1627dc4f6160641b9f.zip |
test case, closes SI-5816
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t5816.check | 1 | ||||
-rw-r--r-- | test/files/run/t5816.scala | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/t5816.check b/test/files/run/t5816.check new file mode 100644 index 0000000000..920b64a50d --- /dev/null +++ b/test/files/run/t5816.check @@ -0,0 +1 @@ +5.+(Test.this.y)
diff --git a/test/files/run/t5816.scala b/test/files/run/t5816.scala new file mode 100644 index 0000000000..f0279e5703 --- /dev/null +++ b/test/files/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 App { + val toolbox = cm.mkToolBox() + + def printSource[T](expr: Expr[T]) { + val ttree = toolbox typeCheck expr.tree + println(ttree.toString) + } + + var y = 3 + printSource(reify { + 5 + y + }) +}
\ No newline at end of file |