From 4ca5c75077cf28c0a508f3216c87b15f6c944e2a Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 27 Dec 2023 09:05:19 -0500 Subject: [PATCH] Fix type check bug --- src/abstract_tree/assignment.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/abstract_tree/assignment.rs b/src/abstract_tree/assignment.rs index eb355e1..01fd935 100644 --- a/src/abstract_tree/assignment.rs +++ b/src/abstract_tree/assignment.rs @@ -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