Skip to content

Generic Fields Break Generated Naming Scheme #3

Description

@Soaryn

Problem:

PolymorphicStructs that are have generics used as a field, can't compile due to the name generated. Common use case will likely be BlobAssetReferences, but for sake of example, I quickly created a generic struct below. Breaks compilation.

Example

namespacePlayground.ExamplePoly{[PolymorphicStruct]publicinterfaceIPoly{publicvoidDoThing();}}
namespacePlayground.ExamplePoly{publicpartialstructPolyA:IPoly{publicExample<int>Test;publicvoidDoThing(){}}publicstructExample<T>whereT: unmanaged {publicTValue;}}

Current Result

publicExample<int>Example<int>_0;

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