everything seems to work ... but code is dirty

This commit is contained in:
Joeri Exelmans 2025-05-19 23:59:21 +02:00
parent a19dbe1b34
commit 5b6bcf5ffa
10 changed files with 253 additions and 131 deletions

View file

@ -50,7 +50,7 @@ export function LambdaBlock({state, setState, suggestionPriority}: LambdaBlockPr
const [paramType, staticInnerEnv] = makeTypeVar(env, state.paramName);
const exprResolved = evalEditorBlock(state.expr, staticInnerEnv);
const [exprResolved] = evalEditorBlock(state.expr, staticInnerEnv);
const inferredParamType = reduceUnification(exprResolved.unification).get(getSymbol(paramType)) || paramType;
@ -62,6 +62,7 @@ export function LambdaBlock({state, setState, suggestionPriority}: LambdaBlockPr
unification: new Map(), // <- is this correct?
})
// const {exprResolved, env: newEnv} = computeLambdaBlockType(state.paramName, state.expr, env);
return <span className="lambdaBlock">
<span className="keyword">&#955;</span>