Skip to content

Nested Structs lose partial keyword #2

Description

@Soaryn

Problem:

PolymorphicStructs that are created in a nested structs, according to the IDE (Rider), don't have a partial sibling related to it.. This breaks compilation.

Example

namespacePlayground.ExamplePoly{[PolymorphicStruct]publicinterfaceIPoly{publicvoidDoThing();}}
namespacePlayground.ExamplePoly{publicclassNestedExample{publicpartialstructPolyB:IPoly{publicvoidDoThing(){}}}}

Potential Related Issues

Static or type definition using statements are lost on source generation. Examples below of what is written vs what is generated.

usingstaticPlayground.ExamplePoly.NestedExample.PolyB;//This example is not using both at the same time, but the result is the same.usingPolyB=Playground.ExamplePoly.NestedExample.PolyB;

Result:

usingPlayground.ExamplePoly.NestedExample.PolyB;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions