When an implicit argument cannot be inferred, the error should show the
name of the argument.
Showing the argument name in the error message for an uninstantiated
metavariable was introduced in da33f498f5,
but this implementation causes some argument names to get lost.
50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
hidingInaccessibleNames.lean:4:15-4:16: error: don't know how to synthesize placeholder
|
||
context:
|
||
x✝² : List Nat
|
||
x✝¹ : Nat
|
||
x✝ : x✝² ≠ []
|
||
⊢ Nat
|
||
hidingInaccessibleNames.lean:3:19-3:20: error: don't know how to synthesize placeholder
|
||
context:
|
||
a b x✝¹ : Nat
|
||
x✝ : [a, b] ≠ []
|
||
⊢ Nat
|
||
hidingInaccessibleNames.lean:2:16-2:17: error: don't know how to synthesize placeholder
|
||
context:
|
||
x✝¹ : Nat
|
||
x✝ : [] ≠ []
|
||
⊢ Nat
|
||
hidingInaccessibleNames.lean:10:16-10:17: error: don't know how to synthesize placeholder
|
||
context:
|
||
x✝² : List Nat
|
||
x✝¹ : Nat
|
||
x✝ : x✝² ≠ []
|
||
⊢ Nat
|
||
hidingInaccessibleNames.lean:9:19-9:20: error: don't know how to synthesize placeholder
|
||
context:
|
||
a b x✝¹ : Nat
|
||
x✝ : [a, b] ≠ []
|
||
⊢ Nat
|
||
hidingInaccessibleNames.lean:8:16-8:17: error: don't know how to synthesize placeholder
|
||
context:
|
||
x✝¹ : Nat
|
||
x✝ : [] ≠ []
|
||
⊢ Nat
|
||
case inl
|
||
p q : Prop
|
||
h✝ : p
|
||
⊢ q ∨ p
|
||
|
||
case inr
|
||
p q : Prop
|
||
h✝ : q
|
||
⊢ q ∨ p
|
||
hidingInaccessibleNames.lean:23:25-23:26: error: don't know how to synthesize placeholder
|
||
context:
|
||
p✝ : Prop
|
||
h✝ x✝ : p✝
|
||
⊢ decide p✝ = true
|
||
hidingInaccessibleNames.lean:27:17-27:18: error: don't know how to synthesize placeholder
|
||
context:
|
||
a✝ : Char
|
||
⊢ a✝.val = a✝.val
|