jbevain / cecil

Cecil is a library to inspect, modify and create .NET programs and libraries.
MIT License
2.76k stars 627 forks source link

Fix that method resolution would consider all function-pointers to be the same #885

Closed nulldatamap closed 1 year ago

nulldatamap commented 1 year ago

AreSame for type-specifications doesn't handle function pointer types, and as a side-effect will consider all function pointer types the same.

This fixes the problem that we noticed in the Burst compiler in Unity.