feat: use 语句 — use module::item 导入模块符号

修复审查 #2: use 语句从 skippable TODO 实现为完整符号导入
  use math_mod::add → 加载模块, 匹配 pub 函数/结构体/枚举, 零前缀导入
新增 37_use.l 集成测试

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 12:53:18 +08:00
parent a070883ae4
commit bcf6508c4c
2 changed files with 47 additions and 4 deletions
+6
View File
@@ -0,0 +1,6 @@
use math_mod::add;
fn main() -> i64 {
print_i64(add(3, 4));
return 0;
}