-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestonecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript
Milestone
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();
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyThe issue relates to JavaScript specificallyFix AvailableA PR has been opened for this issueA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestonecheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript