Closed
Description
TypeScript Version: 2.1.0-dev.20160910
Code
let literal = {
a: 1,
getA() {
return this.a
// error: 'this' implicitly has type 'any' because it does not have a type annotation
},
}
Expected behavior: there is a way to use this
in an object literal while noImplicitThis
enabled
Actual behavior: an error is shown, even with getA: function(this: this)
notation