visualize type unification substitutions
This commit is contained in:
parent
4a4cee6ee9
commit
7edf44f107
7 changed files with 45 additions and 40 deletions
|
|
@ -5,7 +5,7 @@ import { EnvContext } from "../../context/EnvContext";
|
|||
import { GlobalContext } from "../../context/GlobalContext";
|
||||
import { type StaticEnvironment, type TypeInfoCall } from "../../eval/infer_type";
|
||||
import { getActions } from "../app/actions";
|
||||
import { Type } from "../other/Type";
|
||||
import { Type, TypeInfoBlock } from "../other/Type";
|
||||
import "./CallBlock.css";
|
||||
import { ExprBlock, type ExprBlockState, type SetStateFn, type State2Props } from "./ExprBlock";
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ export function CallBlock(props: CallBlockProps) {
|
|||
{/* { (resolved.kind === "error") && resolved.e.toString()
|
||||
|| (resolved.kind === "value") && <Value dynamic={resolved} />
|
||||
|| "unknown" } */}
|
||||
:: <Type type={props.typeInfo.type} />
|
||||
:: <TypeInfoBlock typeInfo={props.typeInfo} />
|
||||
</div>
|
||||
</div>
|
||||
</CallContext>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue