diff options
author | odersky <odersky@gmail.com> | 2015-06-18 10:58:07 +0200 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2015-06-18 10:58:07 +0200 |
commit | 2ce159fa1707c1e57e22af9b2fe5a87fee94ee8d (patch) | |
tree | c13a7f302e0b949dac99249e66962230df43064a /tests/pending/run/macro-term-declared-in-class | |
parent | 78fae1152a7b381af4639d3d66ed637eac3ca9d0 (diff) | |
parent | 797bfd74b0900d18d62082b842f6a330ce414ebd (diff) | |
download | dotty-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-term-declared-in-class')
-rw-r--r-- | tests/pending/run/macro-term-declared-in-class/Impls_1.scala | 11 | ||||
-rw-r--r-- | tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala | 7 |
2 files changed, 0 insertions, 18 deletions
diff --git a/tests/pending/run/macro-term-declared-in-class/Impls_1.scala b/tests/pending/run/macro-term-declared-in-class/Impls_1.scala deleted file mode 100644 index c43f5f3f5..000000000 --- a/tests/pending/run/macro-term-declared-in-class/Impls_1.scala +++ /dev/null @@ -1,11 +0,0 @@ -import scala.reflect.macros.blackbox.Context - -object Impls { - def foo(c: Context) = { - import c.{prefix => prefix} - import c.universe._ - val printPrefix = Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant("prefix = " + prefix)))) - val body = Block(List(printPrefix), Apply(Select(Ident(definitions.PredefModule), TermName("println")), List(Literal(Constant("it works"))))) - c.Expr[Unit](body) - } -}
\ No newline at end of file diff --git a/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala b/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala deleted file mode 100644 index 0c9a7ccf0..000000000 --- a/tests/pending/run/macro-term-declared-in-class/Macros_Test_2.scala +++ /dev/null @@ -1,7 +0,0 @@ -class Macros { - def foo: Unit = macro Impls.foo -} - -object Test extends dotty.runtime.LegacyApp { - new Macros().foo -}
\ No newline at end of file |