@@ -9230,7 +9230,7 @@ export class Compiler extends DiagnosticEmitter {
92309230 let flow = this . currentFlow ;
92319231
92329232 // make a getter for the expression (also obtains the type)
9233- const getValueOrigin = this . compileExpression ( // reports
9233+ const getValueOriginal = this . compileExpression ( // reports
92349234 expression . operand ,
92359235 contextualType . exceptVoid ,
92369236 Constraints . None
@@ -9244,11 +9244,11 @@ export class Compiler extends DiagnosticEmitter {
92449244 tempLocal = flow . getTempLocal ( this . currentType ) ;
92459245 getValue = module . local_tee (
92469246 tempLocal . index ,
9247- getValueOrigin ,
9247+ getValueOriginal ,
92489248 this . currentType . isManaged
92499249 ) ;
92509250 } else {
9251- getValue = getValueOrigin ;
9251+ getValue = getValueOriginal ;
92529252 }
92539253
92549254 let expr : ExpressionRef ;
@@ -9262,7 +9262,7 @@ export class Compiler extends DiagnosticEmitter {
92629262 if ( overload ) {
92639263 let isInstance = overload . is ( CommonFlags . Instance ) ;
92649264 if ( tempLocal && ! isInstance ) { // revert: static overload simply returns
9265- getValue = getValueOrigin ;
9265+ getValue = getValueOriginal ;
92669266 tempLocal = null ;
92679267 }
92689268 expr = this . compileUnaryOverload ( overload , expression . operand , getValue , expression ) ;
@@ -9345,7 +9345,7 @@ export class Compiler extends DiagnosticEmitter {
93459345 if ( overload ) {
93469346 let isInstance = overload . is ( CommonFlags . Instance ) ;
93479347 if ( tempLocal && ! isInstance ) { // revert: static overload simply returns
9348- getValue = getValueOrigin ;
9348+ getValue = getValueOriginal ;
93499349 tempLocal = null ;
93509350 }
93519351 expr = this . compileUnaryOverload ( overload , expression . operand , getValue , expression ) ;
0 commit comments