Zulip Chat Archive
Stream: lean4
Topic: bad error message with unclosed comment
Floris van Doorn (Jul 11 2023 at 09:59):
If you have an unclosed comment in your file, the error messages are not great:
example (n : Nat) : Nat → Nat :=
Nat.add n -- type mismatch
/-
or
example (n : Nat) : Nat → Nat :=
Nat.add n -- type mismatch
#exit
/-
Note:
example (n : Nat) : Nat → Nat :=
Nat.add n -- fine
Floris van Doorn (Jul 11 2023 at 10:00):
(there is also an unterminated comment
error in the first two examples)
Last updated: Dec 20 2023 at 11:08 UTC