-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Debug Failure when emitting declaration for unresolved type constraints #12326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The actual reproduction is here. https://github.com/HerringtonDarkholme/av-ts/tree/ts-crash. Error is |
Together with #12291, all bugs are related to declaration emitting. Maybe we can just skip declaration emitting if there is error in compiling? Since code failed to compile will hardly produce valid declaration. |
TypeScript Version: nightly, --declaration
Code
Expected behavior:
Report
Cannot find name 'Unknown'
Actual behavior:
Debug Failure.
This is unknown parent for type parameter
.N.B. the actual bug is much more subtle. I encounter this when a type alias is bound by a type imported from a library. The actual bug is a compiler crash.
The text was updated successfully, but these errors were encountered: