working feature

This commit is contained in:
Sébastien Besnier 2020-11-04 09:49:19 +01:00
parent 3479f61820
commit 5273896981
3 changed files with 95 additions and 18 deletions

View file

@ -40,7 +40,11 @@ pub enum Problem {
field_region: Region,
replaced_region: Region,
},
InvalidOptionalRecord,
InvalidOptionalValue {
field_name: Lowercase,
record_region: Region,
field_region: Region,
},
DuplicateTag {
tag_name: TagName,
@ -103,7 +107,11 @@ pub enum RuntimeError {
original_region: Region,
shadow: Located<Ident>,
},
InvalidOptionalRecord,
InvalidOptionalValue {
field_name: Lowercase,
record_region: Region,
field_region: Region,
},
// Example: (5 = 1 + 2) is an unsupported pattern in an assignment; Int patterns aren't allowed in assignments!
UnsupportedPattern(Region),
// Example: when 1 is 1.X -> 32