mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
typeck refactors
This commit is contained in:
parent
b4fb837efe
commit
dbd49d852f
3 changed files with 113 additions and 87 deletions
15
test.nil
15
test.nil
|
|
@ -1,11 +1,8 @@
|
|||
function main() = ;
|
||||
|
||||
function memcpy(dst: I32, src: I32, n: I32) =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get 2",
|
||||
"local.get 1",
|
||||
"local.get 0",
|
||||
"memory.copy",
|
||||
)
|
||||
;
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue