Skip to content

Generic types and methods constrained to enums are incorrectly generated #241

@Dooomsickle

Description

@Dooomsickle

Description

When attempting to use a method or class with a type parameter T that's constrained to an enum (in Il2CppInterop's case, generated as where T : Il2CppSystem.Enum) you are unable to do so as IL2CPP enums are generated as managed ones, which fail the type check.

Potential Fix

Remap all Il2CppSystem.Enum generic constraints to System.Enum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions