Improve type inference

Fixes the union-find inference by properly unioning the roots
and also resolves all variables after typeck.
This commit is contained in:
nora 2023-07-24 20:30:06 +02:00
parent 000f17b97e
commit 02412c2a09
2 changed files with 24 additions and 12 deletions

View file

@ -7,7 +7,7 @@ import { typeck } from "./typeck";
const input = `
function main() = (
let true = false in print(true)
let a = 0 in 0;
);
`;