Closed
Description
If my class consists of
class X {
foo() {
}
bar() {
setTimeout(function() {
this.foo();
}, 10)
}
}
I really should get some sort of warning that "this" doesn't mean what I think it means (or that I should use lambda syntax). This has bitten me repeatedly as I've been converting js code into ts code.