mirror of
https://github.com/nushell/nushell.git
synced 2024-12-25 16:39:08 +01:00
e96039fb1b
# Description Fix type checking in arguments default values not adhering to subtyping rules Currently following examples produce a parse error: ```nu def test [ --qwe: record<a: int> = {a: 1 b: 1} ] { } def test [ --qwe: list<any> = [ 1 2 3 ] ] { } ``` despite types matching. Type equality check is replaced with subtyping check and everything parses fine: # User-Facing Changes Default values of flag arguments type checking behavior is in line with `let` statements |
||
---|---|---|
.. | ||
assets/nu_json | ||
const_ | ||
eval | ||
fixtures | ||
hooks | ||
modules | ||
overlays | ||
parsing | ||
path | ||
plugins | ||
scope | ||
shell | ||
main.rs |