-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Problem:
PolymorphicStructs that are created in a different namespace than the interface are not generated in their using statements of the generated struct file, breaking compilation.
Example
namespace Playground.ExamplePoly {
[PolymorphicStruct]
public interface IPoly {
public void DoThing();
}
}namespace Playground.ExamplePoly.Test {
public partial struct PolyC : IPoly {
public void DoThing() { }
}
}Current Temporary Workaround
In another IPoly struct, add the using namespace of what ever namespace is nested. These are picked up by the source generator.
Metadata
Metadata
Assignees
Labels
No labels