diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/bug577.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/files/pos/bug577.scala b/test/files/pos/bug577.scala new file mode 100644 index 0000000000..ede45399a0 --- /dev/null +++ b/test/files/pos/bug577.scala @@ -0,0 +1,21 @@ +trait PriorityTree { + type Node <: BasicTreeNode; + + val top = initTree; + top.next = (initTree); + top.next.prev = (top); + + def initTree : Node; + + + + + trait BasicTreeNode { + private[PriorityTree] var next : Node = _; + private[PriorityTree] var prev : Node = _; + private[PriorityTree] var chld : Node = _; + //var next : Node = _; + //var prev : Node = _; + //var chld : Node = _; + } +} |