This PR improves the consistency of error message formatting by rendering addenda of several existing error messages as labeled notes and hints.
7 lines
335 B
Text
7 lines
335 B
Text
297.lean:1:10-1:11: error: failed to synthesize
|
|
OfNat (Sort ?u) 0
|
|
numerals are polymorphic in Lean, but the numeral `0` cannot be used in a context where the expected type is
|
|
Sort ?u
|
|
due to the absence of the instance above
|
|
|
|
Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
|