From 17e2b1c2a6f69ba74e79c30d1e44195fe732e3e3 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 16 Dec 2005 18:20:15 +0000 Subject: Removed old scala tests from new Scala core mod... Removed old scala tests from new Scala core module. --- test/files/pos/S5.scala | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 test/files/pos/S5.scala (limited to 'test/files/pos/S5.scala') diff --git a/test/files/pos/S5.scala b/test/files/pos/S5.scala deleted file mode 100644 index 08f5b2a6eb..0000000000 --- a/test/files/pos/S5.scala +++ /dev/null @@ -1,30 +0,0 @@ -/* Here's a fragment of a Scala encoding for the Keris module system; -** the compiler claims: -** -** S5.scala:28: value n in class N of type N.this._N.n -** cannot override value n in class M of type M.this._N.n -** val system = new M() with N() {} -** ^ -** To me it seems like the code is perfectly fine... -*/ -abstract class M() { - val _N: N; - val n: _N.n; - val _M: M = this; - val m: _M.m = new _M.m(); - class m() { - // module body of M - } -} -abstract class N() { - val _N: N = this; - val n: _N.n = new _N.n(); - val _M: M; - val m: _M.m; - class n() { - // module body of N - } -} -object O { - val system = new M() with N() {} -} -- cgit v1.2.3