mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
working feature
This commit is contained in:
parent
3479f61820
commit
5273896981
3 changed files with 95 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue