lean4-htt/tests/lean/run/5475.lean
Leonardo de Moura 2652cc18b8
chore: error messages consistency (#10143)
This PR standardizes error messages by quoting names with backticks. The
changes were automated, so some cases may still be missing.
2025-08-26 17:55:43 +00:00

23 lines
465 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.

/-!
# Eta arguments had wrong context in "don't know how to synthesize implicit" errors
https://github.com/leanprover/lean4/issues/5475
-/
set_option pp.mvars false
/-!
Formerly, argument `x` appeared as `_fvar.123`
-/
def f {α β : Type} (x: α) (y: β) : α := x
/--
error: don't know how to synthesize implicit argument `α`
@f ?_ Nat x Nat.zero
context:
⊢ Type
---
error: Failed to infer type of example
-/
#guard_msgs in
example :=
f (y := Nat.zero)