function body uses variable which out of scope #9746
Labels
needs-triage
An issue that hasn't had any proper look
scoping/name-resolution
How Nu finds which variables/functions are in scope and to what they are bound
Milestone
Describe the bug
Continue from comment: #9724 (comment)
How to reproduce
Run the following code in repl or script
It outputs
3
Expected behavior
I expected nu to returns error which says that
$b
is not foundScreenshots
No response
Configuration
Additional context
The following works as expected, although the error message is not fine.
The text was updated successfully, but these errors were encountered: