Skip to content

Conversation

@janvorli
Copy link
Member

Ben Adams has tried to add usage of covariant returns for the
RuntimeType as the overriding return type and it has uncovered an
ordering issue in the SystemDomain::LoadBaseSystemClasses w.r.t.

This change fixes it by shuffling parts of initialization around a bit.

Close #45356

Ben Adams has tried to add usage of covariant returns for the
RuntimeType as the overriding return type and it has uncovered an
ordering issue in the SystemDomain::LoadBaseSystemClasses w.r.t.

This change fixes it by shuffling parts of initialization around a bit.
@janvorli janvorli added this to the 5.0.x milestone Nov 30, 2020
@janvorli janvorli requested a review from jkotas November 30, 2020 21:01
@janvorli janvorli self-assigned this Nov 30, 2020
@janvorli
Copy link
Member Author

cc: @benaadams

@jkotas
Copy link
Member

jkotas commented Nov 30, 2020

I think this should be included in the RuntimeType change if we choose to take it.

There is no one right universal order for these. The right order is heavily dependent on the CoreLib implementation details. It is not unusual that this order needs changing when CoreLib implementation details change.

@benaadams
Copy link
Member

Cherry picked into #45355

@jkotas jkotas closed this Nov 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Covariant returns for RuntimeType crashes during crossgen

3 participants