From 262b0b251753f882266b969d4716d097ceb8fb3c Mon Sep 17 00:00:00 2001 From: Kato Kazuyoshi Date: Sun, 27 Jul 2014 16:38:51 +0900 Subject: Prevent SI-7905 by adding a test The original issue was fixed already. This test is just for make sure. --- test/scaladoc/run/t7905.check | 1 + test/scaladoc/run/t7905.scala | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 test/scaladoc/run/t7905.check create mode 100644 test/scaladoc/run/t7905.scala (limited to 'test/scaladoc') 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) = () +} -- cgit v1.2.3