typeck cleanup

This commit is contained in:
nora 2023-08-03 14:40:25 +02:00
parent 73a369730b
commit ba3a199249
9 changed files with 345 additions and 319 deletions

25
ui-tests/ui/item_tys.nil Normal file
View file

@ -0,0 +1,25 @@
//@check-pass
type A = struct {
b: B,
c: C,
};
type B = struct {};
type C = struct {
b: B,
};
function test(a: A): A = a;
function main() = (
let a = A {
b: B {},
c: C {
b: B {},
}
};
test(a);
);