lean4-htt/tests/lean/invalidNamedArgs.lean.expected.out
jrr6 fb462fdf9e
feat: add named argument hints (#9315)
This PR adds improves the "invalid named argument" error message in
function applications and match patterns by providing clickable hints
with valid argument names. In so doing, it also fixes an issue where
this error message would erroneously flag valid match-pattern argument
names.
2025-07-17 03:22:25 +00:00

24 lines
932 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

invalidNamedArgs.lean:3:9-3:17: error: Invalid argument name `b` for function `List.foldl`
Hint: Perhaps you meant one of the following parameter names:
• `α`: b̵α̲
• `β`: b̵β̲
• `f`: b̵f̲
• `init`: b̵i̲n̲i̲t̲
invalidNamedArgs.lean:9:4-9:18: error: Invalid argument name `flg` for function `f`
Hint: Perhaps you meant one of the following parameter names:
• `a`: f̵l̵g̵a̲
• `flag`: fla̲g
invalidNamedArgs.lean:20:22-20:30: error: Invalid argument name `k` for function `h`
Hint: Perhaps you meant one of the following parameter names:
• `x`: k̵x̲
invalidNamedArgs.lean:21:23-21:31: error: Invalid argument name `k` for function `h`
Hint: Perhaps you meant one of the following parameter names:
• `y`: k̵y̲
invalidNamedArgs.lean:22:13-22:21: error: Invalid argument name `k` for function `h`
Hint: Perhaps you meant one of the following parameter names:
• `n`: k̵n̲