diff options
Diffstat (limited to 'test/files/pos/scoping3.scala')
-rw-r--r-- | test/files/pos/scoping3.scala | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/test/files/pos/scoping3.scala b/test/files/pos/scoping3.scala index c1a65e287f..761d5c311e 100644 --- a/test/files/pos/scoping3.scala +++ b/test/files/pos/scoping3.scala @@ -1,21 +1,23 @@ // $Id$ object CI { - trait TreeDisplay { - type TreeNode <: ITreeNode; - trait ITreeNode { - def display(): unit; - } - } - trait TreeDisplayExp { - def getRoot(): TreeNode; - type TreeNode <: ITreeNodeExp; - trait ITreeNodeExp {} - } - trait TreeDisplayFinal extends TreeDisplay with TreeDisplayExp { - type TreeNode <: ITreeNode with ITreeNodeExp; - } - abstract class SimpleTreeDisplay extends TreeDisplay { self: TreeDisplayFinal => - def display() = { this.getRoot().display(); } - } + trait TreeDisplay { + type TreeNode <: ITreeNode + trait ITreeNode { + def display(): Unit + } + } + + trait TreeDisplayExp { + def getRoot(): TreeNode + type TreeNode <: ITreeNodeExp + trait ITreeNodeExp {} + } + + trait TreeDisplayFinal extends TreeDisplay with TreeDisplayExp { + type TreeNode <: ITreeNode with ITreeNodeExp + } + abstract class SimpleTreeDisplay extends TreeDisplay { self: TreeDisplayFinal => + def display() { this.getRoot().display() } + } } |