You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining a type inheriting a OneOfBase<T,...> with the [GenerateOneOf] attribute inside a namespace that contains "OneOf" as a segment, the generator fails.
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: