visualize type unification substitutions

This commit is contained in:
Joeri Exelmans 2025-05-27 11:17:32 +02:00
parent 4a4cee6ee9
commit 7edf44f107
7 changed files with 45 additions and 40 deletions

View file

@ -8,7 +8,7 @@ import { GlobalContext } from "../../context/GlobalContext";
import { inferTypeInput, type StaticEnvironment, type Type, type TypeInfoInput } from "../../eval/infer_type";
import { getActions } from "../app/actions";
import { Input } from "../other/Input";
import { Type as TypeBlock } from "../other/Type";
import { Type as TypeBlock, TypeInfoBlock } from "../other/Type";
import type { ExprBlockState, State2Props } from "./ExprBlock";
import "./InputBlock.css";
@ -161,7 +161,8 @@ export function InputBlock({ state, setState, score, onCancel, typeInfo }: Input
i={i} setI={setI} />
</span>
</Input>
::<TypeBlock type={typeInfo.type} />
{/* ::<TypeBlock type={typeInfo.type} /> */}
::<TypeInfoBlock typeInfo={typeInfo} />
</>
}