diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-01-09 13:43:32 -0800 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-01-09 13:43:32 -0800 |
commit | e089cafb5fd02e2457bafde3252da3a771d3180e (patch) | |
tree | e4f54289554e90fcc24218a58e9c2fbd3d93a713 /test/files/presentation | |
parent | 572b092495ebf1075064d90d7b9bbc90dec2ac76 (diff) | |
parent | 94eb751d0063b80e7bca542b9c243900527f9028 (diff) | |
download | scala-e089cafb5fd02e2457bafde3252da3a771d3180e.tar.gz scala-e089cafb5fd02e2457bafde3252da3a771d3180e.tar.bz2 scala-e089cafb5fd02e2457bafde3252da3a771d3180e.zip |
Merge pull request #3342 from xeno-by/topic/pres-compiler-macros
Presentation compiler friendliness for macros
Diffstat (limited to 'test/files/presentation')
-rw-r--r-- | test/files/presentation/hyperlinks-macro.check | 11 | ||||
-rw-r--r-- | test/files/presentation/hyperlinks-macro/Runner.scala | 8 | ||||
-rw-r--r-- | test/files/presentation/hyperlinks-macro/src/MacroCall.scala | 11 |
3 files changed, 30 insertions, 0 deletions
diff --git a/test/files/presentation/hyperlinks-macro.check b/test/files/presentation/hyperlinks-macro.check new file mode 100644 index 0000000000..80d2268fa1 --- /dev/null +++ b/test/files/presentation/hyperlinks-macro.check @@ -0,0 +1,11 @@ +reload: MacroCall.scala + +askHyperlinkPos for `foo` at (5,7) MacroCall.scala +================================================================================ +[response] found askHyperlinkPos for `foo` at (2,7) MacroCall.scala +================================================================================ + +askHyperlinkPos for `foo` at (9,7) MacroCall.scala +================================================================================ +[response] found askHyperlinkPos for `foo` at (2,7) MacroCall.scala +================================================================================ diff --git a/test/files/presentation/hyperlinks-macro/Runner.scala b/test/files/presentation/hyperlinks-macro/Runner.scala new file mode 100644 index 0000000000..c2f89bdb17 --- /dev/null +++ b/test/files/presentation/hyperlinks-macro/Runner.scala @@ -0,0 +1,8 @@ +import scala.tools.nsc.interactive.tests.InteractiveTest + +object Test extends InteractiveTest { + override def runDefaultTests() { + sourceFiles foreach (src => askLoadedTyped(src).get) + super.runDefaultTests() + } +} diff --git a/test/files/presentation/hyperlinks-macro/src/MacroCall.scala b/test/files/presentation/hyperlinks-macro/src/MacroCall.scala new file mode 100644 index 0000000000..d9676b3d2a --- /dev/null +++ b/test/files/presentation/hyperlinks-macro/src/MacroCall.scala @@ -0,0 +1,11 @@ +object Test { + def foo = 0 + + scala.reflect.runtime.universe.reify { + foo/*#*/ + } + + identity { + foo/*#*/ + } +} |