Join GitHub today
Fix codegen ordering of implicit finalisers #2419
This change ensures that all implicit finalisers are correctly registered before generating user functions. This ensures that every type with an implicit finaliser is correctly recognised as such when generating object allocations.
This doesn't contain a test case because the bug occurs because of the non-deterministic iteration of the reachability map.