mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
cover all parsed patterns with an error message
but, some invalid patterns are not parsed as expected. See https://github.com/rtfeldman/roc/issues/399
This commit is contained in:
parent
0c7a4179aa
commit
b7d689226c
4 changed files with 53 additions and 24 deletions
|
@ -92,7 +92,6 @@ pub enum RuntimeError {
|
|||
InvalidHex(std::num::ParseIntError, Box<str>),
|
||||
InvalidOctal(std::num::ParseIntError, Box<str>),
|
||||
InvalidBinary(std::num::ParseIntError, Box<str>),
|
||||
QualifiedPatternIdent(InlinableString),
|
||||
CircularDef(Vec<Symbol>, Vec<(Region /* pattern */, Region /* expr */)>),
|
||||
|
||||
/// When the author specifies a type annotation but no implementation
|
||||
|
@ -104,4 +103,6 @@ pub enum MalformedPatternProblem {
|
|||
MalformedInt,
|
||||
MalformedFloat,
|
||||
MalformedBase(Base),
|
||||
Unknown,
|
||||
QualifiedIdentifier,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue