summaryrefslogblamecommitdiff
path: root/test/files/run/macro-impl-tparam-typetag-is-optional/Impls_1.scala
blob: bcc746e39ab693d38933d1dbbf01788d030faab5 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                    


                        
                       
                                                                                                                           
                      
   
 
import scala.reflect.macros.{BlackboxContext => Ctx}

object Impls {
  def foo[U](c: Ctx) = {
    import c.universe._
    val body = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant("don't know U"))))
    c.Expr[Unit](body)
  }
}