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 });