mirror of
https://github.com/nushell/nushell.git
synced 2026-12-03 18:46:44 +08:00
## Description A command annotated to return `int` was returning `string`. This wasn't caught until recently, as the return value wasn't used in an operation that wouldn't also accept `string`. Enabling `enforce-runtime-annotations` (which has been made opt-out recently) caused type checking to occur on the call site (`return` itself is not type checked yet): ```nushell let workflow_id = get-workflow-run $commits $number.span # $workflow_id is inferred to be `int` due to `get-workflow-run`'s signature, # so it's equivalent to: let workflow_id: int = get-workflow-run $commits $number.span ``` ## User-facing changes (Release notes) N/A