-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
The following code should log:
original
new
as it does in ES6. Instead in TypeScript 1.6.2 it causes an error:
'super' can only be referenced in a derived class.
Here's the code:
var obj = {
__proto__: {
method() {
console.log('original');
}
},
method() {
super.method();
console.log('new');
}
};
obj.method();
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptES6Relates to the ES6 SpecRelates to the ES6 SpecFixedA PR has been merged for this issueA PR has been merged for this issue