mirror of
https://github.com/nushell/nushell.git
synced 2025-05-01 16:44:27 +02:00
record -> Any signature appears first
This commit is contained in:
parent
78affb8397
commit
6c72d4c3d0
@ -83,10 +83,10 @@ impl Command for IntoDatetime {
|
|||||||
(Type::List(Box::new(Type::String)), Type::List(Box::new(Type::Date))),
|
(Type::List(Box::new(Type::String)), Type::List(Box::new(Type::Date))),
|
||||||
(Type::table(), Type::table()),
|
(Type::table(), Type::table()),
|
||||||
// FIXME: https://github.com/nushell/nushell/issues/15485
|
// 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::record()),
|
||||||
(Type::record(), Type::Date),
|
(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
|
// 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
|
// which aren't caught by the parser. see https://github.com/nushell/nushell/pull/14922 for more details
|
||||||
// only applicable for --list flag
|
// only applicable for --list flag
|
||||||
|
Loading…
Reference in New Issue
Block a user