diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-07-10 17:15:54 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-07-10 17:15:54 -0700 |
commit | 8b41240f3d532c470112d7bf1f409badac4d56aa (patch) | |
tree | 7e071c8f0270d1a115f6eb2177674e260efb5651 /test | |
parent | 7125dc3e2c8e996f956bba08201c24e458391c12 (diff) | |
parent | be393913a822456683a57c747965f7ee80a2a537 (diff) | |
download | scala-8b41240f3d532c470112d7bf1f409badac4d56aa.tar.gz scala-8b41240f3d532c470112d7bf1f409badac4d56aa.tar.bz2 scala-8b41240f3d532c470112d7bf1f409badac4d56aa.zip |
Merge pull request #2720 from adriaanm/ticket-7487v2.11.0-M4
SI-7487 Revert "Removed -Ymacro-no-expand."
Diffstat (limited to 'test')
-rw-r--r-- | test/scaladoc/run/SI-6812.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/scaladoc/run/SI-6812.scala b/test/scaladoc/run/SI-6812.scala new file mode 100644 index 0000000000..fbd9588ede --- /dev/null +++ b/test/scaladoc/run/SI-6812.scala @@ -0,0 +1,24 @@ +import scala.tools.nsc.doc.model._ +import scala.tools.partest.ScaladocModelTest +import language._ + +object Test extends ScaladocModelTest { + + override def code = """ + import scala.reflect.macros.Context + import language.experimental.macros + + object Macros { + def impl(c: Context) = c.literalUnit + def foo = macro impl + } + + class C { + def bar = Macros.foo + } + """ + + def scaladocSettings = "" + override def extraSettings = super.extraSettings + " -Ymacro-no-expand" + def testModel(root: Package) = () +} |