Fix folders of items wrt the itemid map

This commit is contained in:
nora 2023-07-31 13:13:30 +02:00
parent cbbda39688
commit 6bdbf14ecb
4 changed files with 37 additions and 5 deletions

View file

@ -189,7 +189,10 @@ export function typeck(ast: Ast): Ast {
const checker: Folder = {
...DEFAULT_FOLDER,
item(item) {
ast() {
return ast;
},
itemInner(item) {
switch (item.kind) {
case "function": {
const fnTy = typeOfItem(item.id, item.span) as TyFn;