From 2d7f2a96da929f1451a815edfb47217c7ac88a43 Mon Sep 17 00:00:00 2001 From: Oscar Beaumont Date: Sun, 25 Aug 2024 20:20:41 +0800 Subject: [PATCH] Wildcards should render with their value --- packages/runtime-rendering/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/runtime-rendering/src/index.ts b/packages/runtime-rendering/src/index.ts index b6638eb6..8657bf95 100644 --- a/packages/runtime-rendering/src/index.ts +++ b/packages/runtime-rendering/src/index.ts @@ -120,7 +120,8 @@ export function renderType(type: BaseType): RenderedType | undefined { if (type instanceof t.Int) return "int"; if (type instanceof t.Float) return "float"; if (type instanceof t.Bool) return "bool"; - if (type instanceof t.Wildcard) return "wildcard"; + if (type instanceof t.Wildcard) + return type.wildcard.value().map(renderType).unwrapOr("wildcard"); if (type instanceof t.Struct) { const struct = type.struct as StructBase; console.log(struct);