summaryrefslogtreecommitdiff
path: root/test/files/presentation
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-11-21 07:18:59 -0800
committerJason Zaugg <jzaugg@gmail.com>2013-11-21 07:18:59 -0800
commit38fdd3d1300761e50036c80e9e759873ea1d067b (patch)
treebcecb205b858fd8214b589d812b50f87cc01d730 /test/files/presentation
parentb9f68601bee026bff2c494add399de61de7fc79d (diff)
parent04df2e48e4ae53a4f72c299ce88fa2239b7fba69 (diff)
downloadscala-38fdd3d1300761e50036c80e9e759873ea1d067b.tar.gz
scala-38fdd3d1300761e50036c80e9e759873ea1d067b.tar.bz2
scala-38fdd3d1300761e50036c80e9e759873ea1d067b.zip
Merge pull request #3157 from dotta/backport/2.10.x/si-7915
Backport of SI-7915
Diffstat (limited to 'test/files/presentation')
-rw-r--r--test/files/presentation/t7915.check11
-rw-r--r--test/files/presentation/t7915/Test.scala8
-rw-r--r--test/files/presentation/t7915/src/Foo.scala9
3 files changed, 28 insertions, 0 deletions
diff --git a/test/files/presentation/t7915.check b/test/files/presentation/t7915.check
new file mode 100644
index 0000000000..b18b4ddb55
--- /dev/null
+++ b/test/files/presentation/t7915.check
@@ -0,0 +1,11 @@
+reload: Foo.scala
+
+askHyperlinkPos for `Bar` at (7,11) Foo.scala
+================================================================================
+[response] found askHyperlinkPos for `Bar` at (1,7) Foo.scala
+================================================================================
+
+askHyperlinkPos for `bar` at (7,22) Foo.scala
+================================================================================
+[response] found askHyperlinkPos for `bar` at (2,7) Foo.scala
+================================================================================
diff --git a/test/files/presentation/t7915/Test.scala b/test/files/presentation/t7915/Test.scala
new file mode 100644
index 0000000000..c2f89bdb17
--- /dev/null
+++ b/test/files/presentation/t7915/Test.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/t7915/src/Foo.scala b/test/files/presentation/t7915/src/Foo.scala
new file mode 100644
index 0000000000..a4166ae5b4
--- /dev/null
+++ b/test/files/presentation/t7915/src/Foo.scala
@@ -0,0 +1,9 @@
+class Bar {
+ def bar(b: Int = 2) {}
+}
+
+class Foo {
+ def foo() {
+ new Bar/*#*/().bar/*#*/()
+ }
+}