mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
Report anonymous functions as "this function" rather than symbol name
Closes #2453 Thanks for the assist @chris-packett
This commit is contained in:
parent
1f45d13c67
commit
fdb79da5a8
4 changed files with 45 additions and 6 deletions
|
@ -35,8 +35,9 @@ pub enum Problem {
|
|||
ExposedButNotDefined(Symbol),
|
||||
UnknownGeneratesWith(Loc<Ident>),
|
||||
/// First symbol is the name of the closure with that argument
|
||||
/// Bool is whether the closure is anonymous
|
||||
/// Second symbol is the name of the argument that is unused
|
||||
UnusedArgument(Symbol, Symbol, Region),
|
||||
UnusedArgument(Symbol, bool, Symbol, Region),
|
||||
PrecedenceProblem(PrecedenceProblem),
|
||||
// Example: (5 = 1 + 2) is an unsupported pattern in an assignment; Int patterns aren't allowed in assignments!
|
||||
UnsupportedPattern(BadPattern, Region),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue