diff options
Diffstat (limited to 'test/files')
-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(); } } |