diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2013-02-01 16:14:26 -0800 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2013-02-01 16:14:26 -0800 |
commit | 01eb6f4958b64667dfae6240effa55d44fa0d392 (patch) | |
tree | 592ce02e080c9480993a89ee836011276325d815 /test/scaladoc/run/SI-6812.scala | |
parent | 283924bfa5c266ccaea1bdb87521581e1ceb38cd (diff) | |
parent | 941c56918e052a1c619f35b24c6aa6c736390dc5 (diff) | |
download | scala-01eb6f4958b64667dfae6240effa55d44fa0d392.tar.gz scala-01eb6f4958b64667dfae6240effa55d44fa0d392.tar.bz2 scala-01eb6f4958b64667dfae6240effa55d44fa0d392.zip |
Merge pull request #2024 from scalamacros/ticket/6812
SI-6812 scaladoc can opt out of expanding macros
Diffstat (limited to 'test/scaladoc/run/SI-6812.scala')
-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) = () +} |