From 3fabc8e1e6b927090e12ade5754bc6b302344ebc Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Tue, 31 Jan 2023 13:11:05 -0600 Subject: [PATCH] update type check so that ++ with lists works better (#7926) closes https://github.com/nushell/nushell/issues/7913 --- crates/nu-parser/src/type_check.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-parser/src/type_check.rs b/crates/nu-parser/src/type_check.rs index b555859f28..e5fdd5f6c9 100644 --- a/crates/nu-parser/src/type_check.rs +++ b/crates/nu-parser/src/type_check.rs @@ -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); (