Closed morew4rd closed 1 year ago
Ah yes, the namespace is active until the end of the file, and since the imports don't have their own namespace, it is affecting them. The solution is to shelve the current namespace during an import.
This sets my personal record for the time it took a repo owner getting a bug fixed after me filing it: 20 minutes ❤️
I find that if its something small I understand how to fix, its quicker to just fix it then to return to it later :)
File 'repro.lobster':
Running this file fails with
Notes:
namespace
orimport
statements, code works fine.import
on top of the file (i.e., above thenamespace
), code works fine