Add type system and refator for having only epression
This commit is contained in:
Giulio Agostini
2026-07-06 10:43:17 +02:00
parent 9f15a00b98
commit 842216729b
23 changed files with 940 additions and 979 deletions
+4 -4
View File
@@ -37,13 +37,13 @@ fn resolved_nested_closure_reads_captured_local() {
// `count` is read from inside a nested function, two scopes up; the
// resolver records distance 2 and the interpreter uses `get_at(2, ..)`.
let src = "\
make :: fn () do
make :: fn (): Any do
count := 10;
get :: fn () do
get :: fn (): Number do
return count;
end
end;
return get;
end
end;
g := make();
g();
";