diff options
author | paltherr <paltherr@epfl.ch> | 2004-01-19 09:25:20 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-01-19 09:25:20 +0000 |
commit | 1dbc00126bf0e660b0286ac247271549158bcb65 (patch) | |
tree | fce1c2b6f71dd879b752edc54289386fb86942e1 /test/pos/S5.scala | |
parent | a7fc16dfe690cf0f0a7db36596c7e26a8c417f82 (diff) | |
download | scala-1dbc00126bf0e660b0286ac247271549158bcb65.tar.gz scala-1dbc00126bf0e660b0286ac247271549158bcb65.tar.bz2 scala-1dbc00126bf0e660b0286ac247271549158bcb65.zip |
- Moved test/pos test/neg and test/new into tes...
- Moved test/pos test/neg and test/new into test/files
Diffstat (limited to 'test/pos/S5.scala')
-rw-r--r-- | test/pos/S5.scala | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/pos/S5.scala b/test/pos/S5.scala deleted file mode 100644 index 08f5b2a6eb..0000000000 --- a/test/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() {} -} |