-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Closed
Copy link
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
enum Color {
Red,
Green,
Blue
}
let a1: Color.Red.toString; // TS2694: The Namespace 'Color' has no exported member 'Red'
let a2: Color.Red["toString"];
The type of a1
is invalid - it should be like the type of a2
. It would be nice if the error indicated as much (which would also allow us to offer a code fix).
ngbrown and yukulele
Metadata
Metadata
Assignees
Labels
Domain: Error MessagesThe issue relates to error messagingThe issue relates to error messagingGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19SuggestionAn idea for TypeScriptAn idea for TypeScript