Fix type check bug
This commit is contained in:
parent
43d472a5e4
commit
4ca5c75077
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user