mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 16:35:03 +01:00
Start typechecking generics
This commit is contained in:
parent
bf73203182
commit
01d4238269
15 changed files with 248 additions and 19 deletions
|
|
@ -20,6 +20,7 @@ import {
|
|||
superFoldItem,
|
||||
varUnreachable,
|
||||
TyRawPtr,
|
||||
paramUnreachable,
|
||||
} from "./ast";
|
||||
import { GlobalContext } from "./context";
|
||||
import { unreachable } from "./error";
|
||||
|
|
@ -1257,6 +1258,8 @@ function argRetAbi(param: Ty): ArgRetAbi {
|
|||
return [];
|
||||
case "var":
|
||||
varUnreachable();
|
||||
case "param":
|
||||
paramUnreachable();
|
||||
case "error":
|
||||
unreachable("codegen should not see errors");
|
||||
}
|
||||
|
|
@ -1314,6 +1317,8 @@ function wasmTypeForBody(ty: Ty): wasm.ValType[] {
|
|||
return [];
|
||||
case "var":
|
||||
varUnreachable();
|
||||
case "param":
|
||||
paramUnreachable();
|
||||
case "error":
|
||||
unreachable("codegen should not see errors");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue