mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
better message for duplicate fields/tags
This commit is contained in:
parent
18c6c37c04
commit
7e4a1ef4bd
6 changed files with 367 additions and 52 deletions
|
@ -31,16 +31,19 @@ pub enum Problem {
|
|||
field_name: Lowercase,
|
||||
record_region: Region,
|
||||
field_region: Region,
|
||||
replaced_region: Region,
|
||||
},
|
||||
DuplicateRecordFieldType {
|
||||
field_name: Lowercase,
|
||||
record_region: Region,
|
||||
field_region: Region,
|
||||
replaced_region: Region,
|
||||
},
|
||||
DuplicateTag {
|
||||
tag_name: TagName,
|
||||
tag_union_region: Region,
|
||||
tag_region: Region,
|
||||
replaced_region: Region,
|
||||
},
|
||||
RuntimeError(RuntimeError),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue