@@ -9230,7 +9230,7 @@ export class Compiler extends DiagnosticEmitter {
9230
9230
let flow = this . currentFlow ;
9231
9231
9232
9232
// make a getter for the expression (also obtains the type)
9233
- const getValueOrigin = this . compileExpression ( // reports
9233
+ const getValueOriginal = this . compileExpression ( // reports
9234
9234
expression . operand ,
9235
9235
contextualType . exceptVoid ,
9236
9236
Constraints . None
@@ -9244,11 +9244,11 @@ export class Compiler extends DiagnosticEmitter {
9244
9244
tempLocal = flow . getTempLocal ( this . currentType ) ;
9245
9245
getValue = module . local_tee (
9246
9246
tempLocal . index ,
9247
- getValueOrigin ,
9247
+ getValueOriginal ,
9248
9248
this . currentType . isManaged
9249
9249
) ;
9250
9250
} else {
9251
- getValue = getValueOrigin ;
9251
+ getValue = getValueOriginal ;
9252
9252
}
9253
9253
9254
9254
let expr : ExpressionRef ;
@@ -9262,7 +9262,7 @@ export class Compiler extends DiagnosticEmitter {
9262
9262
if ( overload ) {
9263
9263
let isInstance = overload . is ( CommonFlags . Instance ) ;
9264
9264
if ( tempLocal && ! isInstance ) { // revert: static overload simply returns
9265
- getValue = getValueOrigin ;
9265
+ getValue = getValueOriginal ;
9266
9266
tempLocal = null ;
9267
9267
}
9268
9268
expr = this . compileUnaryOverload ( overload , expression . operand , getValue , expression ) ;
@@ -9345,7 +9345,7 @@ export class Compiler extends DiagnosticEmitter {
9345
9345
if ( overload ) {
9346
9346
let isInstance = overload . is ( CommonFlags . Instance ) ;
9347
9347
if ( tempLocal && ! isInstance ) { // revert: static overload simply returns
9348
- getValue = getValueOrigin ;
9348
+ getValue = getValueOriginal ;
9349
9349
tempLocal = null ;
9350
9350
}
9351
9351
expr = this . compileUnaryOverload ( overload , expression . operand , getValue , expression ) ;
0 commit comments