fix generics

This commit is contained in:
nora 2023-12-16 13:45:09 +01:00
parent dbd49d852f
commit 66d95dfeeb
18 changed files with 154 additions and 158 deletions

View file

@ -1,8 +1,8 @@
type A[T] = struct { a: T };
type B[T] = struct {
b: T,
};
function main() = ;
type A[T] = T;
type B[T] = struct { a: T };
//function ohno(x: A[A[A[I32]]]): I32 = x;
function generic(a: B[I32]): B[I32] = a;
function test(b: B[I32]) = ;