mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
allow comparison for similar types (#5844)
This commit is contained in:
parent
7164929c61
commit
44cbd88b55
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,10 @@ pub fn math_result_type(
|
|||
|
||||
(Type::Any, _) => (Type::Any, None),
|
||||
(_, Type::Any) => (Type::Any, None),
|
||||
|
||||
// FIX ME. This is added because there is no type output for custom function
|
||||
// definitions. As soon as that syntax is added this should be removed
|
||||
(a, b) if a == b => (Type::Bool, None),
|
||||
_ => {
|
||||
*op = Expression::garbage(op.span);
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue