Closed
Description
class Person {
getFavoriteColor() {
}
}
const person = new Person();
person.getFavoriteColour();
Expected
A suggestion diagnostic:
Property 'getFavoriteColour' may not exist on type 'Person'. Did you mean 'getFavoriteColor'?
Actual
No suggestion diagnostic.
In contrast, see this example:
const person = {
getFavoriteColor() {
}
}
person.getFavoriteColour();