diff options
Diffstat (limited to 'tests/pending/run/macro-whitebox-extractor/Macros_1.scala')
-rw-r--r-- | tests/pending/run/macro-whitebox-extractor/Macros_1.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/pending/run/macro-whitebox-extractor/Macros_1.scala b/tests/pending/run/macro-whitebox-extractor/Macros_1.scala deleted file mode 100644 index d394c0241..000000000 --- a/tests/pending/run/macro-whitebox-extractor/Macros_1.scala +++ /dev/null @@ -1,21 +0,0 @@ -import scala.reflect.macros.whitebox.Context -import language.experimental.macros - -object Extractor { - def unapply(x: Int): Any = macro Macros.unapplyImpl -} - -object Macros { - def unapplyImpl(c: Context)(x: c.Tree) = { - import c.universe._ - q""" - new { - class Match(x: Int) { - def isEmpty = false - def get = x - } - def unapply(x: Int) = new Match(x) - }.unapply($x) - """ - } -} |