diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 65722fa6d52..649fcac83bb 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -24083,7 +24083,7 @@ namespace ts { } if (node.operator === SyntaxKind.PlusToken) { if (maybeTypeOfKind(operandType, TypeFlags.BigIntLike)) { - error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(operandType)); + error(node.operand, Diagnostics.Operator_0_cannot_be_applied_to_type_1, tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType))); } return numberType; }