en

PR #5773 Resolve bound name of bare import statically

Published At: 2025-01-29 Tags: pr

The behavior for resolving binding names in import statements without import lists or renaming has been changed. Specifically, binding names are no longer resolved dynamically but must be statically known in the AST.

typ
1
#import "te" + "st.typ"
2
This is a non-static `import`
ERR:
cannot determine binding name for this import

Hint: the name must be statically known
Hint: you can rename the import with `as`
Hint: to import specific items from a dynamic source, add a colon followed by an import list