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

Fix marking of nested type forwarders #2385

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

vitek-karas
Copy link
Member

When create a type reference for the target of a type forwarder, if the type forwarder is for a nested type, we have to build a whole tree of type references for all of the declaring types and not just the final nested type.

Enabled tests which were already added for this case (and fixed a bug in them)

This is a fix for #2359

When create a type reference for the target of a type forwarder, if the type forwarder is for a nested type, we have to build a whole tree of type references for all of the declaring types and not just the final nested type.

Enabled tests which were already added for this case (and fixed a bug in them)
@vitek-karas vitek-karas merged commit 5eee321 into dotnet:main Nov 22, 2021
@vitek-karas vitek-karas deleted the FixNestedTypeForwarder branch November 22, 2021 13:50
vitek-karas added a commit to vitek-karas/linker that referenced this pull request Nov 22, 2021
When create a type reference for the target of a type forwarder, if the type forwarder is for a nested type, we have to build a whole tree of type references for all of the declaring types and not just the final nested type.

Enabled tests which were already added for this case (and fixed a bug in them)
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
When create a type reference for the target of a type forwarder, if the type forwarder is for a nested type, we have to build a whole tree of type references for all of the declaring types and not just the final nested type.

Enabled tests which were already added for this case (and fixed a bug in them)

Commit migrated from dotnet/linker@5eee321
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
When create a type reference for the target of a type forwarder, if the type forwarder is for a nested type, we have to build a whole tree of type references for all of the declaring types and not just the final nested type.

Enabled tests which were already added for this case (and fixed a bug in them)

Commit migrated from dotnet/linker@0e2d10c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants