summaryrefslogtreecommitdiff
path: root/test/scaladoc/run
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2014-07-27 16:38:51 +0900
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2014-07-31 20:14:38 +0900
commit262b0b251753f882266b969d4716d097ceb8fb3c (patch)
treef855e6bba5efb3b15811521f70428434ce5784d8 /test/scaladoc/run
parent3808916f70c34e2e6ecfac1d50ff2cc0bf489834 (diff)
downloadscala-262b0b251753f882266b969d4716d097ceb8fb3c.tar.gz
scala-262b0b251753f882266b969d4716d097ceb8fb3c.tar.bz2
scala-262b0b251753f882266b969d4716d097ceb8fb3c.zip
Prevent SI-7905 by adding a test
The original issue was fixed already. This test is just for make sure.
Diffstat (limited to 'test/scaladoc/run')
-rw-r--r--test/scaladoc/run/t7905.check1
-rw-r--r--test/scaladoc/run/t7905.scala36
2 files changed, 37 insertions, 0 deletions
diff --git a/test/scaladoc/run/t7905.check b/test/scaladoc/run/t7905.check
new file mode 100644
index 0000000000..619c56180b
--- /dev/null
+++ b/test/scaladoc/run/t7905.check
@@ -0,0 +1 @@
+Done.
diff --git a/test/scaladoc/run/t7905.scala b/test/scaladoc/run/t7905.scala
new file mode 100644
index 0000000000..8570724470
--- /dev/null
+++ b/test/scaladoc/run/t7905.scala
@@ -0,0 +1,36 @@
+import scala.tools.nsc.doc.model._
+import scala.tools.partest.ScaladocModelTest
+
+object Test extends ScaladocModelTest {
+ override def code = """
+ object A {
+ val foo = new B {
+ val bar = new C {
+ val baz: A.this.type = A.this
+ }
+ }
+ }
+
+ trait B {
+ type E = bar.D
+
+ val bar: C
+ }
+
+ trait C {
+ trait D
+ }
+
+ trait G {
+ type F = A.foo.E
+
+ def m(f: F) = f match {
+ case _: A.foo.bar.D => // error here
+ }
+ }
+ """
+
+ def scaladocSettings = ""
+
+ def testModel(root: Package) = ()
+}