diff options
author | michelou <michelou@epfl.ch> | 2006-01-17 15:07:00 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-01-17 15:07:00 +0000 |
commit | 8ecff3568d62472d02e23698330a8111b4b081b2 (patch) | |
tree | 4ec4259b1fc919aeefdc1f0c7e1acf1e72f94772 /test | |
parent | 60ee99e4ad87fd4f50a7c6e3d89b4305733c5f9b (diff) | |
download | scala-8ecff3568d62472d02e23698330a8111b4b081b2.tar.gz scala-8ecff3568d62472d02e23698330a8111b4b081b2.tar.bz2 scala-8ecff3568d62472d02e23698330a8111b4b081b2.zip |
replaced ':' (deprecated) by 'requires' in test...
replaced ':' (deprecated) by 'requires' in test/files/pos/bug360.scala,
..
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/bug360.scala | 2 | ||||
-rw-r--r-- | test/files/pos/bug361.scala | 2 | ||||
-rw-r--r-- | test/files/pos/scoping3.scala | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/test/files/pos/bug360.scala b/test/files/pos/bug360.scala index 0fcb5cb161..35f6a94b03 100644 --- a/test/files/pos/bug360.scala +++ b/test/files/pos/bug360.scala @@ -1,6 +1,6 @@ // $Id$ -abstract class Bug360A: Bug360C { +abstract class Bug360A requires Bug360C { def f: String = "hello"; } trait Bug360B: Bug360C { diff --git a/test/files/pos/bug361.scala b/test/files/pos/bug361.scala index f48c906246..b12097e2cb 100644 --- a/test/files/pos/bug361.scala +++ b/test/files/pos/bug361.scala @@ -2,7 +2,7 @@ class Bug361Global extends Bug361Trees; -abstract class Bug361Trees: Bug361Global { +abstract class Bug361Trees requires Bug361Global { abstract class Tree { var pos: int = 0; diff --git a/test/files/pos/scoping3.scala b/test/files/pos/scoping3.scala index 4ebc7f6378..7f45723ce2 100644 --- a/test/files/pos/scoping3.scala +++ b/test/files/pos/scoping3.scala @@ -1,3 +1,5 @@ +// $Id$ + object CI { trait TreeDisplay { type TreeNode <: ITreeNode; @@ -13,7 +15,7 @@ object CI { trait TreeDisplayFinal extends TreeDisplay with TreeDisplayExp { type TreeNode <: ITreeNode with ITreeNodeExp; } - abstract class SimpleTreeDisplay: TreeDisplayFinal extends + abstract class SimpleTreeDisplay requires TreeDisplayFinal extends TreeDisplay { def display() = { this.getRoot().display(); } } |