lean4-htt/tests/lean/notationPrecheck.lean.expected.out
jrr6 5f4e6a86d5
feat: update and explain "unknown constant" and "failed to infer type" errors (#9423)
This PR updates the formatting of, and adds explanations for, "unknown
identifier" errors as well as "failed to infer type" errors for binders
and definitions.

It attempts to ameliorate some of the confusion encountered in #1592 by
modifying the wording of the "header is elaborated before body is
processed" note and adding further discussion and examples of this
behavior in the corresponding error explanation.
2025-07-18 19:20:31 +00:00

18 lines
999 B
Text

notationPrecheck.lean:1:25-1:26: error: Unknown identifier `a` at quotation precheck
Note: You can use `set_option quotPrecheck false` to disable this check.
notationPrecheck.lean:4:16-4:19: error: no macro or `[quot_precheck]` instance for syntax kind 'termB_' found
b x
This means we cannot eagerly check your notation/quotation for unbound identifiers; you can use `set_option quotPrecheck false` to disable this check.
notationPrecheck.lean:8:7-8:8: error: elaboration function for 'termB_' has not been implemented
b x✝
notationPrecheck.lean:13:27-13:32: error: ambiguous notation with at least one interpretation that failed quotation precheck, possible interpretations
(«term_∧__1» `x "∧" `y)
Unknown identifier `y` at quotation precheck
Note: You can use `set_option quotPrecheck false` to disable this check.
(«term_∧_» `x "∧" `y)
Unknown identifier `y` at quotation precheck
Note: You can use `set_option quotPrecheck false` to disable this check.