From 36393e439318c3ac129921367722e896fdde7308 Mon Sep 17 00:00:00 2001 From: Ajani Bilby <11359344+AjaniBilby@users.noreply.github.com> Date: Sat, 8 Jun 2024 10:57:31 +1000 Subject: [PATCH] Update infix.ts --- source/compiler/codegen/expression/infix.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/compiler/codegen/expression/infix.ts b/source/compiler/codegen/expression/infix.ts index 5ba73f3..7a5dc5c 100644 --- a/source/compiler/codegen/expression/infix.ts +++ b/source/compiler/codegen/expression/infix.ts @@ -72,7 +72,7 @@ function CompileAs(ctx: Context, lhs: PrecedenceTree, rhs: PrecedenceTree): Oper const a = CompilePrecedence(ctx, lhs, goal); if (a instanceof LinearType ? a.type !== goal : a !== goal) Panic( - `${colors.red("Error")}: Type coerce is currently unimplemented\n`, { + `${colors.red("Error")}: Type coerce is currently unimplemented (${a.getTypeName()})\n`, { path: ctx.file.path, name: ctx.file.name, ref: lhs.ref });