Skip to content
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

Do not crash if hitting a unsupported intrinsic type #3077

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Mar 28, 2024

fix #3073

This still doesn't provide an optimal experience as the error shows up on the void type instead of where it is referenced but solving that is that long standing issue about tracing back where an error should be

@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 28, 2024

All changed packages have been documented.

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3077/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3077/

Copy link
Member

@bterlson bterlson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, not crashing is better than crashing.

@timotheeguerin timotheeguerin enabled auto-merge (squash) March 28, 2024 20:11
@timotheeguerin timotheeguerin merged commit 6d54aeb into microsoft:main Mar 28, 2024
14 checks passed
@timotheeguerin timotheeguerin deleted the fix/dont-crash-unsupported-intrinsic branch March 28, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Crash when using void or null as body type.
3 participants