Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Add a test case for string->type resolution with forwarded type in generic argument - #2099

Merged
vitek-karas merged 1 commit into
dotnet:mainfrom
vitek-karas:AddTestForForwarderInGeneric
Jun 17, 2021
Merged

vitek-karas merged 1 commit into
dotnet:mainfrom
vitek-karas:AddTestForForwarderInGeneric

Conversation

@vitek-karas

Copy link
Copy Markdown
Member

This test is the easy repro for #1536 (which is relatively complicated to understand).

In short when we resolve type name to type reference where the type is a generic and the generic parameter is a fully qualified type name pointing to a facade, linker will not preserve that facade (even though it will correctly resolve the type and mark it in the implementation assembly).

This works if the facade type is resolved directly, but not if it's used as a generic argument.

@vitek-karas
vitek-karas merged commit 078ffd5 into dotnet:main Jun 17, 2021
@vitek-karas
vitek-karas deleted the AddTestForForwarderInGeneric branch June 17, 2021 16:14
agocke pushed a commit to dotnet/runtime that referenced this pull request Nov 16, 2022
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.

2 participants