You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inferring return types with import attributes causes debug assertion. #56394
Using infer return type on fn will cause a debug assertion.
🙂 Expected behavior
Should infer the return type.
Additional information about the issue
Found while working on isolated declaration.
It's caused by ImportAttributes not going through the full emit pipeline and thus not having their position assigned if they are part of an import type node.
Activity
SarthakNikhal commentedon Nov 16, 2023
Hey! Can I work on this issue?
jakebailey commentedon Nov 16, 2023
This already has a PR: #56395
Also, see https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md#issue-claiming