everything seems to work ... but code is dirty
This commit is contained in:
parent
a19dbe1b34
commit
5b6bcf5ffa
10 changed files with 253 additions and 131 deletions
|
|
@ -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">λ</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue