Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

buyaa-n
Copy link
Contributor

@buyaa-n buyaa-n commented Jan 4, 2024

The method signature populated incorrectly for non generic method that declared within generic type and uses the generic parameters as return type or parameter.

For example, return type of ReadonlySpan<T>.Slice(int) method of an ReadonlySpan<char> instance should be closed generic ReadonlySpan<T> not ReadonlySpan<char>:

Fixes #96469

@ghost
Copy link

ghost commented Jan 4, 2024

Tagging subscribers to this area: @dotnet/area-system-reflection-emit
See info in area-owners.md if you want to be subscribed.

Issue Details

The method signature populated incorrectly for non generic method that declared within generic type and uses the generic parameters as return type or parameter.

For example, return type of ReadonlySpan<T>.Slice(int) method of an ReadonlySpan<char> instance should be closed generic ReadonlySpan<T> not ReadonlySpan<char>:

Fixes #96469

Author: buyaa-n
Assignees: -
Labels:

area-System.Reflection.Emit

Milestone: -

@stephentoub stephentoub merged commit 96851fc into dotnet:main Jan 8, 2024
@buyaa-n buyaa-n deleted the generic-span branch January 8, 2024 17:38
@github-actions github-actions bot locked and limited conversation to collaborators Feb 8, 2024
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.

AssemblyBuilderImpl.DefinePersistedAssembly has trouble with ReadOnlySpan methods
2 participants