From 049c28795b12b7c19ff6fc2f8aa6729f34d9d7f9 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 29 Dec 2023 18:29:16 +0000 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