step 4: new scope with passing reporting tests

This commit is contained in:
Folkert 2022-04-30 00:51:32 +02:00
parent 76a9d25f55
commit 8fe3e24c8b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 71 additions and 137 deletions

View file

@ -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,