You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accept nullable generic class method rows in analyzer validation #7610
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
Accept compatible int and int? method-source rows for T? on a class constrained with where T : struct.
Preserve constraint diagnostics when method rows infer class types; honor explicit, constructor-inferred and inherited constructor types, including type-free constructor rows.
Preserve existing last-occurrence inference behavior and cover uncertain and violating repeated-parameter cases in analyzer tests.
Activity
Fix nullable generic class row validation for #7610 (#7613)