diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-08-12 11:50:32 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2014-08-12 11:50:32 +0200 |
commit | afb0fb1fed8890cb164ae8ffc58e74e5fb59eb20 (patch) | |
tree | 0581ea31d902846359e48f9dec99efe6868b8ba4 | |
parent | b8deaa11cba964f686e33fe416758989df0f31eb (diff) | |
parent | 262b0b251753f882266b969d4716d097ceb8fb3c (diff) | |
download | scala-afb0fb1fed8890cb164ae8ffc58e74e5fb59eb20.tar.gz scala-afb0fb1fed8890cb164ae8ffc58e74e5fb59eb20.tar.bz2 scala-afb0fb1fed8890cb164ae8ffc58e74e5fb59eb20.zip |
Merge pull request #3900 from kzys/jira-7905
Prevent SI-7905 by adding a test just in case
-rw-r--r-- | test/scaladoc/run/t7905.check | 1 | ||||
-rw-r--r-- | test/scaladoc/run/t7905.scala | 36 |
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) = () +} |