zh-CN

PR #5773 Resolve bound name of bare import statically

Published At: 2025-01-29 Tags: pr

改变了无导入列表, 无重命名的 import 解析绑定名称的行为, 具体来说, 现在的绑定名不再动态解析, 而是必须在 AST 中静态地已知.

typ
1
#import "te" + "st.typ"
2
这是一个不静态的 `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