mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
make runtime errors for invalid patterns
This commit is contained in:
parent
2586fde6af
commit
db3ffc6dab
3 changed files with 26 additions and 12 deletions
|
@ -32,6 +32,8 @@ pub enum RuntimeError {
|
|||
original_region: Region,
|
||||
shadow: Located<Ident>,
|
||||
},
|
||||
// Example: (5 = 1 + 2) is an unsupported pattern in an assignment; Int patterns aren't allowed in assignments!
|
||||
UnsupportedPattern(Region),
|
||||
UnrecognizedFunctionName(Located<InlinableString>),
|
||||
LookupNotInScope(Located<InlinableString>),
|
||||
ValueNotExposed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue