-
Notifications
You must be signed in to change notification settings - Fork 161
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
Source Generator fails for types in a "OneOf" namespace #174
Comments
StefanLochauMF
added a commit
to StefanLochauMF/OneOf
that referenced
this issue
Jun 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When defining a type inheriting a
OneOfBase<T,...>
with the[GenerateOneOf]
attribute inside a namespace that contains "OneOf" as a segment, the generator fails.User code:
Generates:
The issue lies with the constructor argument, where the compiler tries to resolve
OneOf.OneOf<...>
asMyLibrary.OneOf.OneOf<..>
.This could be fixed by adding a
global::
inOneOf/OneOf.SourceGenerator/OneOfGenerator.cs
Line 87 in 6e02dbe
to make it
The text was updated successfully, but these errors were encountered: