summaryrefslogtreecommitdiff
path: root/test/files/run/t5753_2
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-05 12:34:13 -0800
committerPaul Phillips <paulp@improving.org>2012-12-05 13:13:55 -0800
commitc42c1742e26dc47f940e4003e4ca25e8c738796d (patch)
tree637acdd45dbf93ba87ae6cb67d4237da652ac8c1 /test/files/run/t5753_2
parent4b2330b3d3db4263a8b1e19b792596dd60d79045 (diff)
parentb84ecc5d1afcb71dd4047de9f1cc49060835d3df (diff)
downloadscala-c42c1742e26dc47f940e4003e4ca25e8c738796d.tar.gz
scala-c42c1742e26dc47f940e4003e4ca25e8c738796d.tar.bz2
scala-c42c1742e26dc47f940e4003e4ca25e8c738796d.zip
Merge branch 'merge-2.10-wip' into merge-2.10
* merge-2.10-wip: Fixing OSGi distribution. Fix for rangepos crasher. SI-6685 fixes error handling in typedApply Test cases for SI-5726, SI-5733, SI-6320, SI-6551, SI-6722. Asserts about Tree qualifiers. Fix for SI-6731, dropped trees in selectDynamic. neg test added SI-5753 macros cannot be loaded when inherited from a class or a trait Take advantage of the margin stripping interpolator. Adds a margin stripping string interpolator. SI-6718 fixes a volatile test Mark pattern matcher synthetics as SYNTHETIC. Set symbol flags at creation. Fix for SI-6687, wrong isVar logic. Fix for SI-6706, Symbol breakage under GC. findEntry implementation code more concise and DRYer. Fix for SI-6357, cycle with value classes. Refactoring of adaptMethod SI-6677 Insert required cast in `new qual.foo.T` Conflicts: src/compiler/scala/tools/nsc/transform/Erasure.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/reflect/scala/reflect/internal/SymbolTable.scala src/reflect/scala/reflect/internal/util/package.scala test/files/neg/gadts1.check
Diffstat (limited to 'test/files/run/t5753_2')
-rw-r--r--test/files/run/t5753_2/Impls_Macros_1.scala10
-rw-r--r--test/files/run/t5753_2/Test_2.scala4
2 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t5753_2/Impls_Macros_1.scala b/test/files/run/t5753_2/Impls_Macros_1.scala
new file mode 100644
index 0000000000..e23c0b938b
--- /dev/null
+++ b/test/files/run/t5753_2/Impls_Macros_1.scala
@@ -0,0 +1,10 @@
+import scala.reflect.macros.{Context => Ctx}
+
+trait Macro_T {
+ def foo[T](c: Ctx)(s: c.Expr[T]) = s
+}
+
+object Macros {
+ def foo[T](s: T) = macro Impls.foo[T]
+ object Impls extends Macro_T
+}
diff --git a/test/files/run/t5753_2/Test_2.scala b/test/files/run/t5753_2/Test_2.scala
new file mode 100644
index 0000000000..a2777638bc
--- /dev/null
+++ b/test/files/run/t5753_2/Test_2.scala
@@ -0,0 +1,4 @@
+object Test extends App {
+ import Macros._
+ println(foo(42))
+} \ No newline at end of file