mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
step 4: new scope with passing reporting tests
This commit is contained in:
parent
76a9d25f55
commit
8fe3e24c8b
8 changed files with 71 additions and 137 deletions
|
@ -404,8 +404,12 @@ pub fn canonicalize_module_defs<'a>(
|
|||
GeneratedInfo::Hosted { effect_symbol, .. } => {
|
||||
let symbol = def.pattern_vars.iter().next().unwrap().0;
|
||||
let ident_id = symbol.ident_id();
|
||||
let ident =
|
||||
scope.ident_ids.get_name(ident_id).unwrap().to_string();
|
||||
let ident = scope
|
||||
.locals
|
||||
.ident_ids
|
||||
.get_name(ident_id)
|
||||
.unwrap()
|
||||
.to_string();
|
||||
let def_annotation = def.annotation.clone().unwrap();
|
||||
let annotation = crate::annotation::Annotation {
|
||||
typ: def_annotation.signature,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue