pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Feature: Recursive type aliases

Open yangdanny97 opened this issue 10 months ago • 0 comments

We probably need to change the way we represent type aliases to be more like classes, to handle recursive aliases. Right the aliased type is stored inline, making recursion impossiblel; all recursive references are treated as Unknown

Ideally we could just have TypeAlias store a unique identifier, and look up the aliased type somewhere else. This would be similar to how we have a ClassType and use it to look up the ClassMetadata

yangdanny97 avatar Mar 31 '25 18:03 yangdanny97