diff options
author | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2014-07-27 16:38:51 +0900 |
---|---|---|
committer | Kato Kazuyoshi <kato.kazuyoshi@gmail.com> | 2014-07-31 20:14:38 +0900 |
commit | 262b0b251753f882266b969d4716d097ceb8fb3c (patch) | |
tree | f855e6bba5efb3b15811521f70428434ce5784d8 /test | |
parent | 3808916f70c34e2e6ecfac1d50ff2cc0bf489834 (diff) | |
download | scala-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')
-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) = () +} |