Fix type check bug

This commit is contained in:
jeff 2023-12-29 18:29:16 +00:00
parent efefd704f7
commit 049c28795b

View File

@ -35,10 +35,7 @@ impl AbstractTree for Assignment {
source, type_node, context, source, type_node, context,
)?) )?)
} else { } else {
context None
.variables()?
.get(identifier.inner())
.map(|(_, r#type)| TypeDefinition::new(r#type.clone()))
} }
} else { } else {
None None