summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-exception/Macros_1.scala
blob: 60e4020aec4cce75831563c4ab01dbbf4b0fd3fa (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) = {
    throw new Exception()
  }
  def exception = macro impl
}