diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-23 22:35:09 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-23 22:35:09 +0000 |
commit | a45be8b2851b8bc76ffa40deb9810568ed5b69f1 (patch) | |
tree | e7337ff79c949d9390eda8aeb11f984c423f8af2 /test/files/run/sigtp.scala | |
parent | 3491672e8667a7e5b8d9bd3d23239757cf1b7a85 (diff) | |
download | scala-a45be8b2851b8bc76ffa40deb9810568ed5b69f1.tar.gz scala-a45be8b2851b8bc76ffa40deb9810568ed5b69f1.tar.bz2 scala-a45be8b2851b8bc76ffa40deb9810568ed5b69f1.zip |
Spiced up the signature test infrastructure a b...
Spiced up the signature test infrastructure a bunch, wrote some more
tests, restored the tests in pending. No review.
Diffstat (limited to 'test/files/run/sigtp.scala')
-rw-r--r-- | test/files/run/sigtp.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/sigtp.scala b/test/files/run/sigtp.scala new file mode 100644 index 0000000000..cd38184109 --- /dev/null +++ b/test/files/run/sigtp.scala @@ -0,0 +1,15 @@ +import scala.tools.partest._ + +trait BugBase [A, E] { + val key: A + var next: E = _ +} + +final class Bug[A, B](val key: A) extends BugBase[A, Bug[A, B]] { + def foo = next +} + +object Test extends App with SigTest { + show[BugBase[_, _]]() + show[Bug[_, _]]() +} |