mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Two non-functional problem reports
This commit is contained in:
parent
a00ed8a1ca
commit
221581432a
4 changed files with 142 additions and 7 deletions
|
@ -10,7 +10,9 @@ use roc_region::all::{Located, Region};
|
|||
pub enum Problem {
|
||||
UnusedDef(Symbol, Region),
|
||||
UnusedImport(ModuleId, Region),
|
||||
UnusedArgument(Symbol, Region),
|
||||
/// First symbol is the name of the closure with that argument
|
||||
/// Second symbol is the name of the argument that is unused
|
||||
UnusedArgument(Symbol, Symbol, Region),
|
||||
PrecedenceProblem(PrecedenceProblem),
|
||||
// Example: (5 = 1 + 2) is an unsupported pattern in an assignment; Int patterns aren't allowed in assignments!
|
||||
UnsupportedPattern(PatternType, Region),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue