With #6469 in, we now give nice suggestions for the following
class C {
static foo: string;
static bar() {
let k = foo;
}
}
where we will report "Did you mean the static member 'C.foo'?".
A small snag is that it won't give you suggestions for a static member from an instance method.
class C {
static foo: string;
bar() {
let k = foo;
}
}
You'll just get "Cannot find name 'foo'." We should change this.
Note that the following should have no suggestions:
class C {
foo: string;
static bar() {
let k = foo;
}
}
With #6469 in, we now give nice suggestions for the following
where we will report "Did you mean the static member 'C.foo'?".
A small snag is that it won't give you suggestions for a static member from an instance method.
You'll just get "Cannot find name 'foo'." We should change this.
Note that the following should have no suggestions: