From 6c72d4c3d011179e6b32ce78d178103a698fdbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Riegel?= Date: Mon, 7 Apr 2025 13:28:38 +0200 Subject: [PATCH] record -> Any signature appears first --- crates/nu-command/src/conversions/into/datetime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nu-command/src/conversions/into/datetime.rs b/crates/nu-command/src/conversions/into/datetime.rs index ecee71e0a7..437684e30f 100644 --- a/crates/nu-command/src/conversions/into/datetime.rs +++ b/crates/nu-command/src/conversions/into/datetime.rs @@ -83,10 +83,10 @@ impl Command for IntoDatetime { (Type::List(Box::new(Type::String)), Type::List(Box::new(Type::Date))), (Type::table(), Type::table()), // FIXME: https://github.com/nushell/nushell/issues/15485 - // 'record -> any' was added as a temporary workaround to avoid type inference issues. + // 'record -> any' was added as a temporary workaround to avoid type inference issues. The Any arm needs to be appear first. + (Type::record(), Type::Any), (Type::record(), Type::record()), (Type::record(), Type::Date), - (Type::record(), Type::Any), // FIXME Type::Any input added to disable pipeline input type checking, as run-time checks can raise undesirable type errors // which aren't caught by the parser. see https://github.com/nushell/nushell/pull/14922 for more details // only applicable for --list flag