feat: 泛型基础设施 — <T>解析 + 类型推断 (单态化 codegen 待补)

This commit is contained in:
2026-06-06 16:17:15 +08:00
parent fa734b8a23
commit 350eeef3c5
9 changed files with 100 additions and 37 deletions
+9
View File
@@ -0,0 +1,9 @@
fn id<T>(x: T) -> T {
return x;
}
fn main() -> i64 {
let a = id(42);
print_i64(a); // 42
return 0;
}