mirror of
https://github.com/nushell/nushell.git
synced 2025-02-08 14:40:53 +01:00
# Description Fixes: #14110 Fixes: #14087 I think it's ok to not generating instruction to `def` and `export def` call. Because they just return `PipelineData::Empty` without doing anything. If nushell generates instructions for `def` and `export def`, nushell will try to capture variables for these block. It's not the time to do this. # User-Facing Changes ``` nu -c " def bar [] { let x = 1 ($x | foo) } def foo [] { foo } " ``` Will no longer raise error. # Tests + Formatting Added 4 tests |
||
---|---|---|
.. | ||
compile | ||
call_ext.rs | ||
closure_eval.rs | ||
column.rs | ||
command_prelude.rs | ||
documentation.rs | ||
env.rs | ||
eval_helpers.rs | ||
eval_ir.rs | ||
eval.rs | ||
glob_from.rs | ||
lib.rs | ||
scope.rs |