From 7eecb7b070f705fca5b2654125b68294126c501f Mon Sep 17 00:00:00 2001 From: Jeff Date: Fri, 16 Feb 2024 11:36:25 -0500 Subject: [PATCH] Fix type checking with None type --- src/abstract_tree/type.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/abstract_tree/type.rs b/src/abstract_tree/type.rs index 67bb5d2..6334e43 100644 --- a/src/abstract_tree/type.rs +++ b/src/abstract_tree/type.rs @@ -81,7 +81,8 @@ impl Type { | (Type::Number, Type::Float) | (Type::Integer, Type::Number) | (Type::Float, Type::Number) - | (Type::String, Type::String) => true, + | (Type::String, Type::String) + | (Type::None, Type::None) => true, ( Type::Custom { name: left_name,