Fix type checking with None type
This commit is contained in:
parent
1819c7e646
commit
7eecb7b070
@ -81,7 +81,8 @@ impl Type {
|
|||||||
| (Type::Number, Type::Float)
|
| (Type::Number, Type::Float)
|
||||||
| (Type::Integer, Type::Number)
|
| (Type::Integer, Type::Number)
|
||||||
| (Type::Float, Type::Number)
|
| (Type::Float, Type::Number)
|
||||||
| (Type::String, Type::String) => true,
|
| (Type::String, Type::String)
|
||||||
|
| (Type::None, Type::None) => true,
|
||||||
(
|
(
|
||||||
Type::Custom {
|
Type::Custom {
|
||||||
name: left_name,
|
name: left_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user