Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Hybrid AOT throws invalid cast exception on dictionaries indexed with enum #7086
Steps to Reproduce
The application crashes with invalid cast exception.
Application should not crash.
On which platforms did you notice this
Mono JIT compiler version 18.104.22.168 (2017-10/38502063cac Thu Feb 1 12:58:29 EST 2018)
Full text of the exception:
This is because it hits the gsharedvt version of Array.UnsafeMov () which is implement as:
There are multiple approaches here: