File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -526,13 +526,13 @@ where
526526 go true ors ands
527527 else if c == '|' then
528528 let p' := p.next h; set p'
529- if h : p.IsAtEnd then
529+ if h : p' .IsAtEnd then
530530 throw "expected '|' after first '|'"
531- else if p.get h = '|' then
531+ else if p' .get h = '|' then
532532 if ands.size = 0 then
533533 throw "expected version range"
534534 else
535- set (p.next h)
535+ set (p' .next h)
536536 go true (ors.push ands) #[]
537537 else
538538 throw "expected '|' after first '|'"
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ def checkParse (ver expected : String) : IO Unit := do
1414
1515def checkMatch (range : String) (accepts rejects : Array String) : IO Unit := do
1616 let range ← IO.ofExcept <| VerRange.parse range
17- accepts.forM fun s => do
17+ for s in accepts do
1818 let ver ← IO.ofExcept <| StdVer.parse s
1919 unless range.test ver do
2020 throw <| IO.userError s! "invalid reject: expected\n '{ range} '\n to accept\n '{ s} '"
21- rejects.forM fun s => do
21+ for s in rejects do
2222 let ver ← IO.ofExcept <| StdVer.parse s
2323 if range.test ver then
2424 throw <| IO.userError s! "invalid accept: expected\n '{ range} '\n to reject\n '{ s} '"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ package test
77Test logging in Lake CLI
88-/
99
10- def cfgLogLv? := (get_config? log).bind LogLevel.ofString?
10+ def cfgLogLv? := (get_config? log).bind ( LogLevel.ofString? ·)
1111
1212meta if cfgLogLv?.isSome then
1313 run_cmd Lean.log "bar" cfgLogLv?.get!.toMessageSeverity
You can’t perform that action at this time.
0 commit comments