summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-abort/Macros_1.scala
blob: 577e6400892a93fbc6eee0e9ec054e0ec3bd279f (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.language.experimental.macros
import scala.reflect.macros.BlackboxContext

object Macros {
  def impl(c: BlackboxContext) = {
    c.abort(c.enclosingPosition, "aborted")
  }
  def abort = macro impl
}