Circular Reference with Generic Parameterization - error TS2456: Type alias 'Result' circularly references itself. #61062
Labels
Not a Defect
This behavior is one of several equally-correct options
π Search Terms
Circular Reference, Generic Parameterization, error TS2456: Type alias 'Result' circularly references itself.
π Version & Regression Information
Failing on Main 32ebd28
β― Playground Link
https://www.typescriptlang.org/play/?#code/C4TwDgpgBAggdiAPAFShAHsCcAmBnKAeQCMArCAY2AD4oBeKAbwCgo2oBtAawhAC48wAE4BLOAHMAunyjIA3MwC+cqM2ahIUAEoQ8AVwA2welEGiJUAD7bdh4B0lXYCRDv1HqKgPRe0QoQD2QrIAygBMACwArABsMsjg0ACGBiJJBADkbnYZUBQiQhSGSUIGIFBCEABmEJVwFLpQIsB4EAZVAHTMQA
π» Code
Fails :-
Works :-
Fails :-
It looks like it is a Generic Parameterization issue.
π Actual behavior
Throwing Error on compilation error TS2456: Type alias 'Result' circularly references itself.
π Expected behavior
Should not throw an error and demonstrates the type system is incomplete.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: