-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Description
Bug Report
π Search Terms
override esnext emit output
π Version & Regression Information
- This is new behavior introduced in the 4.3 release
β― Playground Link
Playground link with relevant code
π» Code
export class ServiceInherit {
age = 30;
}
export class ServiceInherit2 extends ServiceInherit {
override age = 31;
}π Actual behavior
Output is currently being produced with the override keyword, when targetting ESNext as the language target.
Common JS Output
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ServiceInherit2 = exports.ServiceInherit = void 0;
class ServiceInherit {
age = 30;
}
exports.ServiceInherit = ServiceInherit;
class ServiceInherit2 extends ServiceInherit {
override age = 31;
}
exports.ServiceInherit2 = ServiceInherit2;ESNext Module Ouptut
export class ServiceInherit {
age = 30;
}
export class ServiceInherit2 extends ServiceInherit {
override age = 31;
}π Expected behavior
The output should not include non-standard keywords like override.
Metadata
Metadata
Assignees
Labels
No labels