fix: position of failed to synthesize toStream ... error
This commit is contained in:
parent
619885e745
commit
e21ea53661
1 changed files with 3 additions and 1 deletions
|
|
@ -1340,8 +1340,10 @@ mutual
|
|||
let doForDecls := doForDecls.eraseIdx 1
|
||||
let body := doFor[3]
|
||||
withFreshMacroScope do
|
||||
let toStreamFn ← `(toStream)
|
||||
let toStreamFn := toStreamFn.copyInfo ys
|
||||
let auxDo ←
|
||||
`(do let mut s := toStream $ys
|
||||
`(do let mut s := $toStreamFn:ident $ys
|
||||
for $doForDecls:doForDecl,* do
|
||||
match Stream.next? s with
|
||||
| none => break
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue