mirror of
https://github.com/nushell/nushell.git
synced 2025-02-22 13:31:34 +01: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
@ -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 New Issue
Block a user