Skip to content

Commit c3ae803

Browse files
committed
fix
1 parent 870aab6 commit c3ae803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/unroll-default-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ case class Unrolled(s: String, n: Int = 1, @unroll b: Boolean = true, l: Long =
373373
def this(s: String, n: Int) = this(s, n, true, 0L)
374374
def this(s: String, n: Int, b: Boolean) = this(s, n, b, 0L)
375375

376-
def copy(s: String, n: Int) = copy(s, n, true, 0L)
377-
def copy(s: String, n: Int, b: Boolean) = copy(s, n, b, 0L)
376+
def copy(s: String, n: Int) = copy(s, n, this.b, this.l)
377+
def copy(s: String, n: Int, b: Boolean) = copy(s, n, b, this.l)
378378

379379
def foo = s + n + b
380380
}

0 commit comments

Comments
 (0)