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

AOT analysis warning in CSharpMath.Editor #227

Closed
charlesroddie opened this issue Sep 13, 2023 · 0 comments · Fixed by #230
Closed

AOT analysis warning in CSharpMath.Editor #227

charlesroddie opened this issue Sep 13, 2023 · 0 comments · Fixed by #230
Labels
Status/1. Ready This issue has been confirmed and is ready to be worked on. Type/Bug

Comments

@charlesroddie
Copy link
Collaborator

charlesroddie commented Sep 13, 2023

ILC : AOT analysis warning IL3050: CSharpMath.Editor.SubIndexTypeMismatchException.SubIndexTypeMismatchException(MathListIndex): Using member 'System.Type.GetEnumValues()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. It might not be possible to create an array of the enum type at runtime. Use Enum.GetValues or the GetEnumValuesAsUnderlyingType method instead.

Array.IndexOf(typeof(MathListSubIndexType).GetEnumValues(), index.SubIndexType) == -1

@charlesroddie charlesroddie added Type/Bug Status/0. New This issue is new and is awaiting confirmation from the maintainers. labels Sep 13, 2023
@Happypig375 Happypig375 added Status/1. Ready This issue has been confirmed and is ready to be worked on. and removed Status/0. New This issue is new and is awaiting confirmation from the maintainers. labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status/1. Ready This issue has been confirmed and is ready to be worked on. Type/Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants