mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 00:45:04 +01:00
make generics worse
This commit is contained in:
parent
1a0828bd32
commit
5fefc46402
7 changed files with 107 additions and 73 deletions
|
|
@ -20,7 +20,7 @@ import {
|
|||
superFoldItem,
|
||||
varUnreachable,
|
||||
TyRawPtr,
|
||||
paramUnreachable,
|
||||
paramUnreachable as codegenUnreachableTy,
|
||||
structFieldsSubstituted,
|
||||
} from "./ast";
|
||||
import { GlobalContext } from "./context";
|
||||
|
|
@ -1256,11 +1256,10 @@ function argRetAbi(param: Ty): ArgRetAbi {
|
|||
case "never":
|
||||
return [];
|
||||
case "var":
|
||||
varUnreachable();
|
||||
case "param":
|
||||
paramUnreachable();
|
||||
case "alias":
|
||||
case "error":
|
||||
unreachable("codegen should not see errors");
|
||||
codegenUnreachableTy(param);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1313,11 +1312,10 @@ function wasmTypeForBody(ty: Ty): wasm.ValType[] {
|
|||
case "never":
|
||||
return [];
|
||||
case "var":
|
||||
varUnreachable();
|
||||
case "param":
|
||||
paramUnreachable();
|
||||
case "alias":
|
||||
case "error":
|
||||
unreachable("codegen should not see errors");
|
||||
codegenUnreachableTy(ty);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue