Skip to content

Accept nullable generic class method rows in analyzer validation #7610

Closed

Description

@thomhurst

Summary

The TUnit0001 analyzer rejects integer method-source rows for nullable generic class parameters. Deliver the analyzer correction independently of discovery changes so supported tests compile without suppressing the diagnostic.

Proposal

Reuse the analyzer changes from branch issue-7573-nullable-analyzer at 36c8723ae14871d458537bdc8f3daf4dee479808. Own src/TUnit.Analyzers/Extensions/CompilationExtensions.cs, src/TUnit.Analyzers/TestDataAnalyzer.cs, and tests/TUnit.Analyzers.Tests/MethodDataSourceAnalyzerTests.cs. Do not copy generator, engine or STA snapshot changes.

Acceptance criteria

Parent: #7573. Split because #7591 exceeded the automated review budget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: edge case, mode divergence, flaky test, or workaround existsbugSomething isn't workingin-progressWork is in progress

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions