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

IAssetType static abstract instance fix #451

Merged

Conversation

Elscrux
Copy link
Member

@Elscrux Elscrux commented Jul 11, 2023

Bug

The new static abstract IAssetType seems to have an issue I didn't think of before. More details can be found here. dotnet/csharplang#5955

The result is that trying to create any data structure like this is impossible with the static abstract implementation of Instances.

static abstract IAssetType Instance { get; }

...

List<IAssetType> AssetTypes; // error (CS8920)

PR

This PR is supposed to fix this issue by making IAssetType's Instance (temporarily) virtual and adding tests to ensure everyone implements a valid Instance.

@Noggog Noggog merged commit c19b13d into Mutagen-Modding:dev Jul 11, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants