It is confusing that the message suggesting to use the `diagnostics` option is given even when the option is already set. This PR makes use of lazy message data to make the message contingent on the option being false. It also tones down the promise that there is any diagonostic information available, since sometimes there is nothing to report. Suggested by Johan Commelin.
14 lines
602 B
Text
14 lines
602 B
Text
typeOf.lean:11:22-11:25: error: failed to synthesize
|
|
HAdd Nat Nat Bool
|
|
Additional diagnostic information may be available by using the `set_option diagnostics true` command.
|
|
typeOf.lean:12:0-12:5: error: failed to synthesize
|
|
HAdd Bool Nat Nat
|
|
Additional diagnostic information may be available by using the `set_option diagnostics true` command.
|
|
typeOf.lean:20:56-20:62: error: invalid reassignment, term has type
|
|
Bool : Type
|
|
but is expected to have type
|
|
Nat : Type
|
|
typeOf.lean:29:55-29:59: error: natural number expected, value has type
|
|
Bool : Type
|
|
but is expected to have type
|
|
Nat : Type
|