Start typechecking generics

This commit is contained in:
nora 2023-11-06 20:41:49 +01:00
parent bf73203182
commit 01d4238269
15 changed files with 248 additions and 19 deletions

View file

@ -1,11 +1,11 @@
type A = struct { a: Int };
//@check-pass
type A[T] = struct { a: T };
type B[T, U, V] = struct {
b: T,
d: V,
};
type C = ();
function main() = (
let a: Int = "";
let b: Int = "";
c;
);
function main() = ;
function rawr(a: *A) = (
a.a = 1;
);
function test(a: A[I32], b: B[I32, Int, I32], c: C) = ;