summaryrefslogtreecommitdiff
path: root/test/files/pos/t2399.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t2399.scala')
-rw-r--r--test/files/pos/t2399.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/t2399.scala b/test/files/pos/t2399.scala
index 07882dd549..b009f7856b 100644
--- a/test/files/pos/t2399.scala
+++ b/test/files/pos/t2399.scala
@@ -3,12 +3,12 @@ trait That2[A, R <: That2[A, R]]
trait T[A, This >: Null <: That1[A] with T[A, This]] extends That2[A, This] {
self: This =>
-
+
private var next: This = _
def isEmpty = next eq null
-
+
def length: Int = {
def loop(x: This, cnt: Int): Int = if (x.isEmpty) cnt else loop(x.next, cnt + 1)
loop(self, 0)
- }
+ }
} \ No newline at end of file