diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-10-08 06:21:52 -0700 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-10-08 06:21:52 -0700 |
commit | 6745756926c989c1551267d6dff6888d9d270c8e (patch) | |
tree | 0ebb773a405678685d59c7f58d126c21dca93dea /test/files/pos | |
parent | 65a321c63e5ddb77fa87de098c4f7d6f9ce8baa6 (diff) | |
parent | 0bf9daaac7ab46a3e9dd113565b0073eed95be59 (diff) | |
download | scala-6745756926c989c1551267d6dff6888d9d270c8e.tar.gz scala-6745756926c989c1551267d6dff6888d9d270c8e.tar.bz2 scala-6745756926c989c1551267d6dff6888d9d270c8e.zip |
Merge pull request #1474 from scalamacros/topic/6485
SI-6485 stops creating extmethods for macros
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6485a/Macros_1.scala | 5 | ||||
-rw-r--r-- | test/files/pos/t6485a/Test_2.scala | 5 | ||||
-rw-r--r-- | test/files/pos/t6485b/Test.scala | 10 |
3 files changed, 20 insertions, 0 deletions
diff --git a/test/files/pos/t6485a/Macros_1.scala b/test/files/pos/t6485a/Macros_1.scala new file mode 100644 index 0000000000..85c2d5dbdb --- /dev/null +++ b/test/files/pos/t6485a/Macros_1.scala @@ -0,0 +1,5 @@ +import scala.reflect.macros.Context + +object Macros { + def crash(c: Context): c.Expr[Unit] = c.universe.reify(()) +}
\ No newline at end of file diff --git a/test/files/pos/t6485a/Test_2.scala b/test/files/pos/t6485a/Test_2.scala new file mode 100644 index 0000000000..54e260ac74 --- /dev/null +++ b/test/files/pos/t6485a/Test_2.scala @@ -0,0 +1,5 @@ +import scala.language.experimental.macros + +final class Ops[T](val x: T) extends AnyVal { + def f = macro Macros.crash +} diff --git a/test/files/pos/t6485b/Test.scala b/test/files/pos/t6485b/Test.scala new file mode 100644 index 0000000000..382df1c453 --- /dev/null +++ b/test/files/pos/t6485b/Test.scala @@ -0,0 +1,10 @@ +import scala.language.experimental.macros +import scala.reflect.macros.Context + +final class Ops[T](val x: T) extends AnyVal { + def f = macro Macros.crash +} + +object Macros { + def crash(c: Context): c.Expr[Unit] = c.universe.reify(()) +}
\ No newline at end of file |