A[] form works, but Array<A> breaks #45641
Labels
Bug
A bug in TypeScript
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
Bug Report
🔎 Search Terms
site:github.com inurl:/microsoft/TypeScript/issues/ Array
[]
normalization
syntactic sugar
🕗 Version & Regression Information
This works in 3.9.7, broke in 4.0.5, and remains broken in Nightly.
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
The
A[]
form in the first line works, but the otherwise-identicalArray<…>
form on the second line breaks with the warningType alias 'S' circularly references itself.(2456)
.🙂 Expected behavior
Both of these should work, and behave identically, as they are merely syntactic sugar for each other.
The text was updated successfully, but these errors were encountered: