You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to trigger this bug by first declaring a function in the global scope (like def something) which triggers def bar to believe it belongs to the global scope even though it's defined after overlay use. Example:
Describe the bug
cc: @kubouch
Affected pages
Problem
The book suggests that any new definition will be inaccessible after hiding a overlay as seen here:
However, that's not the case after hiding the overlay in the following script:
How to reproduce
$ nu script.nu
Edit: 2nd reproducible example in
#2
comment: #14739 (comment)Expected behavior
Any definitions after
overlay use
, likedef bar
in the reproducible example, should become inaccessible afteroverlay hide
.Configuration
$ version | transpose key value | to md --pretty
$ sys host
The text was updated successfully, but these errors were encountered: