diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-02 17:57:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-02 17:57:16 +0000 |
commit | 83b67aa805fd1329d6bcc54b1c1fa16416437b6f (patch) | |
tree | 3fcc59ba0523f644bceef4676f7a6689f9949417 /test/pending/pos/t2099.scala | |
parent | 84146e2f53fb1f5e8abbc521121078e932cf82e7 (diff) | |
download | scala-83b67aa805fd1329d6bcc54b1c1fa16416437b6f.tar.gz scala-83b67aa805fd1329d6bcc54b1c1fa16416437b6f.tar.bz2 scala-83b67aa805fd1329d6bcc54b1c1fa16416437b6f.zip |
Sequence->Seq
Diffstat (limited to 'test/pending/pos/t2099.scala')
-rw-r--r-- | test/pending/pos/t2099.scala | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/pending/pos/t2099.scala b/test/pending/pos/t2099.scala new file mode 100644 index 0000000000..ddeee58a4b --- /dev/null +++ b/test/pending/pos/t2099.scala @@ -0,0 +1,27 @@ + + +I have a trait: + +trait Vis[+T] + +and an object/class pair: + +object VisImpl? { def apply() = new VisImpl? } class VisImpl? extends Vis[Missing] + +Where Missing is some class of mine. In a separate project (where Vis and VisImpl? are on the classpath but Missing is not), if I do: + +object Test extends Application { + + val v = VisImpl?() println(v) + +} + +This causes a Scala compiler error (using 2.7.5 compiler). The error is: + +"Caused by java.lang.RuntimeException?: malformed Scala signature of VisImpl? at 3634; reference value data of package mypack refers to nonexisting symbol" + +Where mypack is the root package of the Missing class. This is not a helpful error as all my classes share the same root package and the problem is not in the VisImpl? declaration in any case. + +I would expect to see an error of the form: + +" Type parameter not found 'Missing': VisImpl? extends Vis[Missing] at Test: #4: val v = VisImpl?() " |