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