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

[Bug]: named union with circular ref should not pass compile #6106

Open
4 tasks done
tadelesh opened this issue Feb 21, 2025 · 0 comments
Open
4 tasks done

[Bug]: named union with circular ref should not pass compile #6106

tadelesh opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working compiler:core Issues for @typespec/compiler

Comments

@tadelesh
Copy link
Member

Describe the bug

union defined with any kinds of circular ref should be banned because it is meaningless.

Reproduction

playground

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler:core Issues for @typespec/compiler
Projects
None yet
Development

No branches or pull requests

2 participants