mirror of
https://github.com/nushell/nushell
synced 2024-12-25 12:33:17 +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::Any, _) | (_, Type::Any) => (Type::Any, None),
|
||||
_ => {
|
||||
*op = Expression::garbage(op.span);
|
||||
(
|
||||
|
|
Loading…
Reference in a new issue