-
Notifications
You must be signed in to change notification settings - Fork 13.4k
extends causing string literal can't be used as index #54886
Copy link
Copy link
Open
Labels
Domain: Indexed Access TypesThe issue relates to accessing subtypes via index accessThe issue relates to accessing subtypes via index accessPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Metadata
Metadata
Assignees
Labels
Domain: Indexed Access TypesThe issue relates to accessing subtypes via index accessThe issue relates to accessing subtypes via index accessPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Report
🔎 Search Terms
cannot be used as an index type
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
type Cthrows error🙂 Expected behavior
no error