Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

ds5678
Copy link
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
2 checks passed
@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