summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-05-08 23:09:34 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-08 23:09:34 +0200
commit6dd0a364f775e507f0ffb983311c35f40d1e1939 (patch)
treeaab8a6e60a68e549650843c1f7b7f5d7e9f9e96b /test/files
parent63b91bf08bda2ecc2c30049e087250c9ee58db98 (diff)
parent2d37cc0b846a0ba50eb534c2a7379efd95f72ebc (diff)
downloadscala-6dd0a364f775e507f0ffb983311c35f40d1e1939.tar.gz
scala-6dd0a364f775e507f0ffb983311c35f40d1e1939.tar.bz2
scala-6dd0a364f775e507f0ffb983311c35f40d1e1939.zip
Merge pull request #3689 from xeno-by/ticket/8523
makes bundles friendly to -Ywarn-dead-code
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t8523.flags1
-rw-r--r--test/files/pos/t8523.scala10
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8523.flags b/test/files/pos/t8523.flags
new file mode 100644
index 0000000000..c7d406c649
--- /dev/null
+++ b/test/files/pos/t8523.flags
@@ -0,0 +1 @@
+-Ywarn-dead-code -Xfatal-warnings \ No newline at end of file
diff --git a/test/files/pos/t8523.scala b/test/files/pos/t8523.scala
new file mode 100644
index 0000000000..dfcb35404d
--- /dev/null
+++ b/test/files/pos/t8523.scala
@@ -0,0 +1,10 @@
+import scala.language.experimental.macros
+import scala.reflect.macros.blackbox.Context
+
+class Impl(val c: Context) {
+ def impl: c.Tree = ???
+}
+
+object Macros {
+ def foo: Any = macro Impl.impl
+} \ No newline at end of file