Skip to content

Commit 789f23b

Browse files
oderskynicolasstucki
authored andcommitted
Fix val parameter override problem
1 parent bbf99b7 commit 789f23b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/shared/src/main/scala/org/specs2/execute/Result.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import text.NotNullStrings.*
2525
* - possibly a number of expectations when it is the outcome of several checks (this is used for the reporting of
2626
* ScalaCheck properties).
2727
*/
28-
sealed abstract class Result(val message: String = "", val expected: String = "", val expectationsNb: Int = 1)
28+
sealed abstract class Result(val message: String = "", val expected: String = "", _expectationsNb: Int = 1)
2929
derives CanEqual:
3030
type SelfType <: Result
31-
31+
val expectationsNb: Int = _expectationsNb
3232
/** @return
3333
* the colored textual status of the result
3434
*/

0 commit comments

Comments
 (0)