summaryrefslogblamecommitdiff
path: root/test/files/run/macro-invalidusage-partialapplication-with-tparams/Test_2.scala
blob: 9a34c62e0f1321601ceb4b6a9824e11efb242dcb (plain) (tree)
1
2
3
4
5
6
7
8



                                                    
                                                               
                               

                                                         
object Test extends App {
  import scala.reflect.runtime.universe._
  import scala.reflect.runtime.{currentMirror => cm}
  import scala.tools.reflect.ToolBox
  val tree = Select(Ident(TermName("Macros")), TermName("foo"))
  try cm.mkToolBox().eval(tree)
  catch { case ex: Throwable =>  println(ex.getMessage) }
}