fix type inferencing bug

This commit is contained in:
Joeri Exelmans 2025-05-24 18:35:06 +02:00
parent 69175c8cb1
commit b2584a2495
2 changed files with 12 additions and 7 deletions

View file

@ -97,7 +97,7 @@ function InputParams({ ...rest }) {
const globalContext = useContext(GlobalContext);
const typeInfo = inferTypeCall(rest.state, env);
const inputEnv = typeInfo.fn.newEnv;
const isOffending = rest.state.err;
const isOffending = typeInfo.err;
return <div className={"inputParam" + (isOffending ? " offending" : "")}>
{rest.state.fn.kind === "call"
&& globalContext?.syntacticSugar