lean4-htt/tests/lean/caseSuggestions.lean.expected.out
David Christiansen b0b922bae4 feat: list the valid case tags when the user writes an invalid one
Before, Lean would simply emit the message "tag not found". With this
change, it also tells the user what they could have written that would
be accepted.
2023-10-06 11:14:21 +02:00

42 lines
1.2 KiB
Text

caseSuggestions.lean:11:2-12:8: error: Case tag 'nonexistent' not found.
There are no cases to select.
caseSuggestions.lean:20:2-21:8: error: Case tag 'nonexistent' not found.
The only available case tag is 'unit'.
caseSuggestions.lean:29:2-30:8: error: Case tag 'nonexistent' not found.
Available tags: 'false', 'true'
caseSuggestions.lean:34:2-35:8: error: Case tag 'nonexistent' not found.
Available tags: 'false.false', 'false.true', 'true.false', 'true.true'
caseSuggestions.lean:39:2-40:8: error: Case tag 'nonexistent' not found.
Available tags:
'false.false.false',
'false.false.true',
'false.true.false',
'false.true.true',
'true.false.false',
'true.false.true',
'true.true.false',
'true.true.true'
caseSuggestions.lean:44:2-45:8: error: Case tag 'nonexistent' not found.
Available tags:
'false.false.false.false',
'false.false.false.true',
'false.false.true.false',
'false.false.true.true',
'false.true.false.false',
'false.true.false.true',
'false.true.true.false',
'false.true.true.true',
'true.false.false.false',
'true.false.false.true',
'true.false.true.false',
'true.false.true.true',
'true.true.false.false',
'true.true.false.true',
'true.true.true.false',
'true.true.true.true'