From ddf27a1e0e4b9eae521651704e74298c33c9af6c Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Fri, 17 Aug 2012 11:50:01 +0200 Subject: more cleanup for typedMacroBody --- test/files/run/macro-def-path-dependent-d.check | 1 - test/files/run/macro-def-path-dependent-d.flags | 1 - test/files/run/macro-def-path-dependent-d/Impls_Macros_1.scala | 9 --------- test/files/run/macro-def-path-dependent-d/Test_2.scala | 3 --- test/files/run/macro-def-path-dependent-d1.check | 1 + test/files/run/macro-def-path-dependent-d1.flags | 1 + test/files/run/macro-def-path-dependent-d1/Impls_Macros_1.scala | 9 +++++++++ test/files/run/macro-def-path-dependent-d1/Test_2.scala | 3 +++ test/files/run/macro-def-path-dependent-d2.check | 1 + test/files/run/macro-def-path-dependent-d2.flags | 1 + test/files/run/macro-def-path-dependent-d2/Impls_1.scala | 7 +++++++ test/files/run/macro-def-path-dependent-d2/Macros_2.scala | 7 +++++++ test/files/run/macro-def-path-dependent-d2/Test_3.scala | 3 +++ 13 files changed, 33 insertions(+), 14 deletions(-) delete mode 100644 test/files/run/macro-def-path-dependent-d.check delete mode 100644 test/files/run/macro-def-path-dependent-d.flags delete mode 100644 test/files/run/macro-def-path-dependent-d/Impls_Macros_1.scala delete mode 100644 test/files/run/macro-def-path-dependent-d/Test_2.scala create mode 100644 test/files/run/macro-def-path-dependent-d1.check create mode 100644 test/files/run/macro-def-path-dependent-d1.flags create mode 100644 test/files/run/macro-def-path-dependent-d1/Impls_Macros_1.scala create mode 100644 test/files/run/macro-def-path-dependent-d1/Test_2.scala create mode 100644 test/files/run/macro-def-path-dependent-d2.check create mode 100644 test/files/run/macro-def-path-dependent-d2.flags create mode 100644 test/files/run/macro-def-path-dependent-d2/Impls_1.scala create mode 100644 test/files/run/macro-def-path-dependent-d2/Macros_2.scala create mode 100644 test/files/run/macro-def-path-dependent-d2/Test_3.scala (limited to 'test/files/run') diff --git a/test/files/run/macro-def-path-dependent-d.check b/test/files/run/macro-def-path-dependent-d.check deleted file mode 100644 index 1ea14b4e20..0000000000 --- a/test/files/run/macro-def-path-dependent-d.check +++ /dev/null @@ -1 +0,0 @@ -it works diff --git a/test/files/run/macro-def-path-dependent-d.flags b/test/files/run/macro-def-path-dependent-d.flags deleted file mode 100644 index cd66464f2f..0000000000 --- a/test/files/run/macro-def-path-dependent-d.flags +++ /dev/null @@ -1 +0,0 @@ --language:experimental.macros \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d/Impls_Macros_1.scala b/test/files/run/macro-def-path-dependent-d/Impls_Macros_1.scala deleted file mode 100644 index 2daf6fc3fb..0000000000 --- a/test/files/run/macro-def-path-dependent-d/Impls_Macros_1.scala +++ /dev/null @@ -1,9 +0,0 @@ -import scala.reflect.runtime.universe._ -import scala.reflect.macros.Context -import scala.reflect.api.Universe - -object Test { - def materializeTypeTag[T](u: Universe)(e: T) = macro materializeTypeTag_impl[T] - - def materializeTypeTag_impl[T: c.AbsTypeTag](c: Context)(u: c.Expr[Universe])(e: c.Expr[T]): c.Expr[u.value.TypeTag[T]] = ??? -} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d/Test_2.scala b/test/files/run/macro-def-path-dependent-d/Test_2.scala deleted file mode 100644 index 7dffc5107d..0000000000 --- a/test/files/run/macro-def-path-dependent-d/Test_2.scala +++ /dev/null @@ -1,3 +0,0 @@ -object Test extends App { - println("it works") -} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d1.check b/test/files/run/macro-def-path-dependent-d1.check new file mode 100644 index 0000000000..1ea14b4e20 --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d1.check @@ -0,0 +1 @@ +it works diff --git a/test/files/run/macro-def-path-dependent-d1.flags b/test/files/run/macro-def-path-dependent-d1.flags new file mode 100644 index 0000000000..cd66464f2f --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d1.flags @@ -0,0 +1 @@ +-language:experimental.macros \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d1/Impls_Macros_1.scala b/test/files/run/macro-def-path-dependent-d1/Impls_Macros_1.scala new file mode 100644 index 0000000000..2daf6fc3fb --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d1/Impls_Macros_1.scala @@ -0,0 +1,9 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.macros.Context +import scala.reflect.api.Universe + +object Test { + def materializeTypeTag[T](u: Universe)(e: T) = macro materializeTypeTag_impl[T] + + def materializeTypeTag_impl[T: c.AbsTypeTag](c: Context)(u: c.Expr[Universe])(e: c.Expr[T]): c.Expr[u.value.TypeTag[T]] = ??? +} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d1/Test_2.scala b/test/files/run/macro-def-path-dependent-d1/Test_2.scala new file mode 100644 index 0000000000..7dffc5107d --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d1/Test_2.scala @@ -0,0 +1,3 @@ +object Test extends App { + println("it works") +} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d2.check b/test/files/run/macro-def-path-dependent-d2.check new file mode 100644 index 0000000000..1ea14b4e20 --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d2.check @@ -0,0 +1 @@ +it works diff --git a/test/files/run/macro-def-path-dependent-d2.flags b/test/files/run/macro-def-path-dependent-d2.flags new file mode 100644 index 0000000000..cd66464f2f --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d2.flags @@ -0,0 +1 @@ +-language:experimental.macros \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d2/Impls_1.scala b/test/files/run/macro-def-path-dependent-d2/Impls_1.scala new file mode 100644 index 0000000000..1cda64e43e --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d2/Impls_1.scala @@ -0,0 +1,7 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.macros.Context +import scala.reflect.api.Universe + +object Impls { + def materializeTypeTag_impl[T: c.AbsTypeTag](c: Context)(u: c.Expr[Universe])(e: c.Expr[T]): c.Expr[u.value.TypeTag[T]] = ??? +} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d2/Macros_2.scala b/test/files/run/macro-def-path-dependent-d2/Macros_2.scala new file mode 100644 index 0000000000..65ce4d8bd2 --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d2/Macros_2.scala @@ -0,0 +1,7 @@ +import scala.reflect.runtime.universe._ +import scala.reflect.macros.Context +import scala.reflect.api.Universe + +object Macros { + def materializeTypeTag[T](u: Universe)(e: T) = macro Impls.materializeTypeTag_impl[T] +} \ No newline at end of file diff --git a/test/files/run/macro-def-path-dependent-d2/Test_3.scala b/test/files/run/macro-def-path-dependent-d2/Test_3.scala new file mode 100644 index 0000000000..7dffc5107d --- /dev/null +++ b/test/files/run/macro-def-path-dependent-d2/Test_3.scala @@ -0,0 +1,3 @@ +object Test extends App { + println("it works") +} \ No newline at end of file -- cgit v1.2.3