blob: 676c1120982247e2867bda4e549e3106a89137de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
import scala.language.experimental.macros
import scala.reflect.macros.Context
object Macros {
def impl(c: Context) = {
c.abort(c.enclosingPosition, "aborted")
}
def abort = macro impl
}
|