aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/scoping3.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/scoping3.scala')
-rw-r--r--tests/untried/pos/scoping3.scala21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/untried/pos/scoping3.scala b/tests/untried/pos/scoping3.scala
new file mode 100644
index 000000000..55fd32d3b
--- /dev/null
+++ b/tests/untried/pos/scoping3.scala
@@ -0,0 +1,21 @@
+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(): Unit = { this.getRoot().display() }
+ }
+}