fix type inferencing bug
This commit is contained in:
parent
69175c8cb1
commit
b2584a2495
2 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue