We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I got the following when I tried the code snippet for union
union Name = variant1 | variant2;
It is ambiguous as in https://typespec.io/docs/language-basics/unions/.
we could either define it as expression
alias Breed = Beagle | GermanShepherd | GoldenRetriever;
or as named union
union Breed { beagle: Beagle, shepherd: GermanShepherd, retriever: GoldenRetriever, }
The code snippet seems to be a mix of the above.
As described above
The text was updated successfully, but these errors were encountered:
[typespec-vscode] Fix code snippet for union in typespec-vscode (#6137)
f62d7d8
Fix: #5760 Fix code snippet for union in typespec-vscode
mzhongl524
Successfully merging a pull request may close this issue.
Describe the bug
I got the following when I tried the code snippet for union
It is ambiguous as in https://typespec.io/docs/language-basics/unions/.
we could either define it as expression
or as named union
The code snippet seems to be a mix of the above.
Reproduction
As described above
Checklist
The text was updated successfully, but these errors were encountered: