1
0

Fix type check bug

This commit is contained in:
Jeff 2023-12-27 09:05:19 -05:00
parent 43d472a5e4
commit 4ca5c75077

View File

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