Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2720 from adriaanm/ticket-7487
SI-7487 Revert "Removed -Ymacro-no-expand."
- Loading branch information
Showing
3 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) = () | ||
} |