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