mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
update type check so that ++ with lists works better (#7926)
closes https://github.com/nushell/nushell/issues/7913
This commit is contained in:
parent
517ef7cde7
commit
3fabc8e1e6
1 changed files with 1 additions and 0 deletions
|
@ -84,6 +84,7 @@ pub fn math_result_type(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(Type::Table(a), Type::Table(_)) => (Type::Table(a.clone()), None),
|
(Type::Table(a), Type::Table(_)) => (Type::Table(a.clone()), None),
|
||||||
|
(Type::Any, _) | (_, Type::Any) => (Type::Any, None),
|
||||||
_ => {
|
_ => {
|
||||||
*op = Expression::garbage(op.span);
|
*op = Expression::garbage(op.span);
|
||||||
(
|
(
|
||||||
|
|
Loading…
Reference in a new issue