mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 08:55:04 +01:00
Start typechecking generics
This commit is contained in:
parent
bf73203182
commit
01d4238269
15 changed files with 248 additions and 19 deletions
18
test.nil
18
test.nil
|
|
@ -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) = ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue