feat(selfhost-sema): check annotation vs initializer type in let/var

This commit is contained in:
2026-07-28 20:43:19 +03:00
parent 76ea9cc083
commit f0890e13f8
2 changed files with 60 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
func Main() -> int {
let bad: int = "a" + 1;
let x: int = "hello";
let y: bool = 42;
let z: int = undefined_variable;
return 0;
}