fix bug in type inferencing

This commit is contained in:
Joeri Exelmans 2025-05-21 00:13:17 +02:00
parent bb6e742f5f
commit c3f7cea310
8 changed files with 205 additions and 155 deletions

View file

@ -51,8 +51,11 @@ export function ExprBlock(props: ExprBlockProps) {
return <span className={"editor" + ((resolved.kind!=="value") ? " "+resolved.kind : "")}>
{renderBlock[props.state.kind]()}
<div className="typeSignature">
{/* @ts-ignore */}
<div className={"typeSignature" + (resolved.__debug ? ' gotDebug' : '')}>
&nbsp;::&nbsp;<Type type={getType(resolved)} />
{/* @ts-ignore */}
{resolved.__debug && <div className="typeDebug">{resolved.__debug}</div>}
</div>
<Input
placeholder="<c>"