@@ -49,17 +49,17 @@ private[debug] object DebugStepAssert:
4949 given location : CheckFileLocation = CheckFileLocation (checkFile, allLines.size - lines.size + 1 )
5050 lines match
5151 case Nil => acc.reverse
52- case break(className , lineStr) :: tail =>
52+ case break(className : String , lineStr : String ) :: tail =>
5353 val breakpointLine = lineStr.toInt
5454 val step = DebugStepAssert (Break (className, breakpointLine), checkClassAndLine(className, breakpointLine))
5555 loop(tail, step :: acc)
56- case step(pattern) :: tail =>
56+ case step(pattern : String ) :: tail =>
5757 val step = DebugStepAssert (Step , checkLineOrMethod(pattern))
5858 loop(tail, step :: acc)
59- case next(pattern) :: tail =>
59+ case next(pattern : String ) :: tail =>
6060 val step = DebugStepAssert (Next , checkLineOrMethod(pattern))
6161 loop(tail, step :: acc)
62- case eval(expr) :: tail0 =>
62+ case eval(expr : String ) :: tail0 =>
6363 val (assertion, tail1) = parseEvalAssertion(tail0)
6464 val step = DebugStepAssert (Eval (expr), assertion)
6565 loop(tail1, step :: acc)
@@ -78,8 +78,8 @@ private[debug] object DebugStepAssert:
7878 lines match
7979 case Nil => throw new Exception (s " Missing result or error " )
8080 case trailing() :: tail => parseEvalAssertion(tail)
81- case result(expected) :: tail => (checkResult(expected), tail)
82- case error(expected) :: tail => (checkError(Seq (expected)), tail)
81+ case result(expected : String ) :: tail => (checkResult(expected), tail)
82+ case error(expected : String ) :: tail => (checkError(Seq (expected)), tail)
8383 case multiLineError() :: tail0 =>
8484 val (expected, tail1) = tail0.span(_.startsWith(" " ))
8585 (checkError(expected.map(_.stripPrefix(" " ))), tail1)
0 commit comments