Skip to content
Permalink
Browse files

test case, closes SI-5816

  • Loading branch information
xeno-by committed Jun 9, 2012
1 parent fca291e commit 51ef16f2e963c27b988e2f1627dc4f6160641b9f
Showing with 18 additions and 0 deletions.
  1. +1 −0 test/files/run/t5816.check
  2. +17 −0 test/files/run/t5816.scala
@@ -0,0 +1 @@
5.+(Test.this.y)
@@ -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
})
}

0 comments on commit 51ef16f

Please sign in to comment.
You can’t perform that action at this time.