chore: Improve LCNF check goto error message
This commit is contained in:
parent
fc304d95c0
commit
a608532fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ partial def check (code : Code) : CheckM Unit := do
|
|||
checkJpInScope fvarId
|
||||
let decl ← getFunDecl fvarId
|
||||
unless decl.getArity == args.size do
|
||||
throwError "invalid LCNF `jmp`, join point has #{decl.getArity} parameters, but #{args.size} were provided"
|
||||
throwError "invalid LCNF `goto`, join point {decl.binderName} has #{decl.getArity} parameters, but #{args.size} were provided"
|
||||
checkAppArgs (.fvar fvarId) args
|
||||
| .return fvarId => checkFVar fvarId
|
||||
| .unreach .. => pure ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue