diff --git a/NOTICE b/NOTICE index 14d821345c..148bc0ca87 100644 --- a/NOTICE +++ b/NOTICE @@ -62,6 +62,7 @@ under the licensing terms detailed in LICENSE: * Kam Chehresa * Mopsgamer <79159094+Mopsgamer@users.noreply.github.com> * EDM115 +* Weixie Cui Portions of this software are derived from third-party works licensed under the following terms: diff --git a/src/compiler.ts b/src/compiler.ts index 36f09ab8aa..4b246478eb 100644 --- a/src/compiler.ts +++ b/src/compiler.ts @@ -4150,7 +4150,7 @@ export class Compiler extends DiagnosticEmitter { rightExpr = this.compileExpression(right, leftType); rightType = this.currentType; commonType = Type.commonType(leftType, rightType, contextualType); - if (!commonType || !leftType.isNumericValue) { + if (!commonType || !commonType.isNumericValue) { this.error( DiagnosticCode.Operator_0_cannot_be_applied_to_types_1_and_2, expression.range, "-", leftType.toString(), rightType.toString()