summaryrefslogtreecommitdiff
path: root/test/files/pos/t5706.scala
blob: 847acb693f4265445c8664fcdddef3e01be1b914 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import scala.reflect.makro.Context

class Logger {
  def error(message: String) = macro Impls.error
}

object Impls {
  type LoggerContext = Context { type PrefixType = Logger }
  def error(c: LoggerContext)(message: c.Expr[String]): c.Expr[Unit] = ???
}