diff options
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/bug520.check | 4 | ||||
-rw-r--r-- | test/files/pos/bug577.scala | 21 |
2 files changed, 21 insertions, 4 deletions
diff --git a/test/files/neg/bug520.check b/test/files/neg/bug520.check deleted file mode 100644 index 4fb56d90f0..0000000000 --- a/test/files/neg/bug520.check +++ /dev/null @@ -1,4 +0,0 @@ -bug520.scala:8 error: overloaded method verifyKeyword needs result type - verifyKeyword("", source, pos); - ^ -one error found 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 = _; + } +} |