diff options
author | paltherr <paltherr@epfl.ch> | 2003-03-18 12:49:15 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-03-18 12:49:15 +0000 |
commit | 890f4fc1b3bb8083b1003d37860bb8262f7a846e (patch) | |
tree | a4113802a0288b5cb125e767efccb2b1c84c0489 /test/pos/test5.scala | |
parent | c6ce203b92ccbeebdc8af5016e544768cb059937 (diff) | |
download | scala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.tar.gz scala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.tar.bz2 scala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.zip |
- Fixed some minor errors
Diffstat (limited to 'test/pos/test5.scala')
-rw-r--r-- | test/pos/test5.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pos/test5.scala b/test/pos/test5.scala index 850fb49a31..08f91650da 100644 --- a/test/pos/test5.scala +++ b/test/pos/test5.scala @@ -11,7 +11,7 @@ module test { def g[Jg](h: Jg):G[Jg] = g[Jg](h); class M[P]() { - class I[X]() { + abstract class I[X]() { // Methods to check the type X and P as seen from instances of I def chk_ix(x: X): Unit = (); def chk_ip(p: P): Unit {} @@ -30,7 +30,7 @@ module test { class N[Q]() extends M[F[Q]]() { val j:J[G[Q]] = null; - class J[Y]() extends I[G[Y]]() { + abstract class J[Y]() extends I[G[Y]]() { // Values with types Y and X as seen from instances of J def val_jy: Y = val_jy; def val_jx: G[Y] = g[Y](val_jy); @@ -65,4 +65,4 @@ module test { j.chk_ix(j.val_jx); j.chk_ix(val_njx); } -}
\ No newline at end of file +} |