summaryrefslogtreecommitdiff
path: root/test/files/pos/test5.scala
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-18 12:49:15 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-18 12:49:15 +0000
commit890f4fc1b3bb8083b1003d37860bb8262f7a846e (patch)
treea4113802a0288b5cb125e767efccb2b1c84c0489 /test/files/pos/test5.scala
parentc6ce203b92ccbeebdc8af5016e544768cb059937 (diff)
downloadscala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.tar.gz
scala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.tar.bz2
scala-890f4fc1b3bb8083b1003d37860bb8262f7a846e.zip
- Fixed some minor errors
Diffstat (limited to 'test/files/pos/test5.scala')
-rw-r--r--test/files/pos/test5.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/test5.scala b/test/files/pos/test5.scala
index 850fb49a31..08f91650da 100644
--- a/test/files/pos/test5.scala
+++ b/test/files/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
+}