Skip to content

Add targeted regression test for #115442 #115817

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

MichalStrehovsky
Copy link
Member

Resolves #115442.

@Copilot Copilot AI review requested due to automatic review settings May 21, 2025 08:55
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a targeted regression test for issue #115442.

  • Registers Test115442Regression in the SmokeTests runner
  • Defines a TypeBuilder<T1, T2> struct and a Run method to invoke its generic Add<T3> method via reflection

Comment on lines +3689 to +3692
class Test115442Regression
{
public readonly struct TypeBuilder<T1, T2>
{
Copy link
Preview

Copilot AI May 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment describing the purpose of this regression test (e.g., verifying reflection invocation on generic methods with tuple-based type parameters) to improve maintainability and future clarity.

Suggested change
class Test115442Regression
{
public readonly struct TypeBuilder<T1, T2>
{
// Regression test for issue 115442
// Verifies that reflection invocation works correctly on a generic method
// with tuple-based type parameters.
class Test115442Regression
{
public readonly struct TypeBuilder<T1, T2>

Copilot uses AI. Check for mistakes.

@MichalStrehovsky MichalStrehovsky merged commit 8ea2168 into dotnet:main May 21, 2025
73 checks passed
@MichalStrehovsky MichalStrehovsky deleted the fix115442 branch May 21, 2025 18:47
SimaTian pushed a commit that referenced this pull request May 27, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2025
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.

IlcCompiler never ends
2 participants