Skip to content

Special-case System.Enum as a generic constraint#160

Merged
ds5678 merged 1 commit intoBepInEx:masterfrom
ds5678:enum-generic-constraint
Sep 10, 2024
Merged

Special-case System.Enum as a generic constraint#160
ds5678 merged 1 commit intoBepInEx:masterfrom
ds5678:enum-generic-constraint

Conversation

@ds5678
Copy link
Copy Markdown
Collaborator

@ds5678 ds5678 commented Sep 9, 2024

Previously:

public class AdapterView<T, VH, T_AXIS_LIST> : MonoBehaviour
    where VH : ViewHolder<T>
    where T_AXIS_LIST : IL2CppSystem.Enum
{
}

Now:

public class AdapterView<T, VH, T_AXIS_LIST> : MonoBehaviour
    where VH : ViewHolder<T>
    where T_AXIS_LIST : System.Enum
{
}

@ds5678 ds5678 added bug Something isn't working generation Related to assembly generation labels Sep 9, 2024
@ds5678 ds5678 added this to the 1.5.0 milestone Sep 9, 2024
@ds5678 ds5678 requested a review from js6pak September 9, 2024 00:02
@ds5678 ds5678 merged commit 1eacadb into BepInEx:master Sep 10, 2024
@ds5678 ds5678 deleted the enum-generic-constraint branch September 13, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working generation Related to assembly generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants