Infinite loop when resolving type args #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While trying to ingest React types with getdocs-ts,
ReactElementcauses an infinite loop. It's recursive in its own type parameters, viaJSXElementConstructor:This appears to cause an infinite loop as
getReferenceTypetries to build the type args:This isn't a huge problem as I don't need to document this type (I skipped it as a workaround), but I figured it was worth reporting. It would've also been easier to chase down if getdocs had a trace mode so it could print the names of the files and symbols it's trying to resolve, as "maximum call stack exceeded" is a pain to trap.
Attached patch should help.