mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
fix generics
This commit is contained in:
parent
dbd49d852f
commit
66d95dfeeb
18 changed files with 154 additions and 158 deletions
12
test.nil
12
test.nil
|
|
@ -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]) = ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue