aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2015-06-18 10:58:07 +0200
committerodersky <odersky@gmail.com>2015-06-18 10:58:07 +0200
commit2ce159fa1707c1e57e22af9b2fe5a87fee94ee8d (patch)
treec13a7f302e0b949dac99249e66962230df43064a /tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala
parent78fae1152a7b381af4639d3d66ed637eac3ca9d0 (diff)
parent797bfd74b0900d18d62082b842f6a330ce414ebd (diff)
downloaddotty-2ce159fa1707c1e57e22af9b2fe5a87fee94ee8d.tar.gz
dotty-2ce159fa1707c1e57e22af9b2fe5a87fee94ee8d.tar.bz2
dotty-2ce159fa1707c1e57e22af9b2fe5a87fee94ee8d.zip
Merge pull request #664 from dotty-staging/more-tests
Enable tests that pass, move macro tests to disabled.
Diffstat (limited to 'tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala')
-rw-r--r--tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala b/tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala
deleted file mode 100644
index 26ed64d8c..000000000
--- a/tests/pending/run/macro-enclosingowner-detectvar/Macros_1.scala
+++ /dev/null
@@ -1,14 +0,0 @@
-import scala.reflect.macros.whitebox._
-import scala.language.experimental.macros
-
-object Macros {
- def impl(c: Context) = {
- import c.universe._
- def detectFlags(sym: TermSymbol): String = {
- (sym.isVal, sym.isVar, !sym.isVal && !sym.isVar && !sym.isLazy, sym.isLazy).toString
- }
- q"println(${detectFlags(c.internal.enclosingOwner.asTerm)}); 42"
- }
-
- def foo: Int = macro impl
-} \ No newline at end of file