diff options
Diffstat (limited to 'tests/disabled/macro/run/t5704.scala')
-rw-r--r-- | tests/disabled/macro/run/t5704.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/disabled/macro/run/t5704.scala b/tests/disabled/macro/run/t5704.scala new file mode 100644 index 000000000..b9765ebb6 --- /dev/null +++ b/tests/disabled/macro/run/t5704.scala @@ -0,0 +1,19 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.runtime.{universe => ru} +import scala.reflect.runtime.{currentMirror => cm} +import scala.tools.reflect.ToolBox + +object Test extends dotty.runtime.LegacyApp { + class MyQuerycollection{ + def findUserByName( name:String ) = { + val tree = reify{ "test" == name }.tree + val toolbox = cm.mkToolBox() + toolbox.typecheck(tree) match{ + case Apply(Select(lhs,op),rhs::Nil) => + println(rhs.tpe) + } + } + } + val qc = new MyQuerycollection + qc.findUserByName("some value") +} |