mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
bunch of stuff
This commit is contained in:
parent
43550bf18e
commit
e395d18e16
13 changed files with 776 additions and 343 deletions
|
@ -737,10 +737,10 @@ pub fn canonicalize_expr<'a>(
|
|||
use roc_problem::can::RuntimeError::*;
|
||||
(RuntimeError(MalformedClosure(region)), Output::default())
|
||||
}
|
||||
ast::Expr::MalformedIdent(name) => {
|
||||
ast::Expr::MalformedIdent(name, bad_ident) => {
|
||||
use roc_problem::can::RuntimeError::*;
|
||||
|
||||
let problem = MalformedIdentifier((*name).into(), region);
|
||||
let problem = MalformedIdentifier((*name).into(), *bad_ident, region);
|
||||
env.problem(Problem::RuntimeError(problem.clone()));
|
||||
|
||||
(RuntimeError(problem), Output::default())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue