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
Source-generated generic class inference ignores inherited Arguments rows #7490
Source-generated discovery cannot infer a generic test class from an inherited [Arguments(42)] constructor row. The same row declared on the derived class infers int. Inherited argument values are available at compile time, so this reports an unnecessary generic inference failure; explicitly adding [GenerateGenericTest(typeof(int))] works.
Run source-generated discovery with --treenode-filter "/*/*/Derived/*". Move [Arguments(42)] to Derived<T> to compare.
Expected and actual
Expected: one passing test with T = int, as for a directly declared row. Actual: one failed test saying the class type arguments cannot be inferred at compile time. Reflection discovery with the inherited-class-source fix runs one passing test.
Environment
TUnit source at 9100521, SDK 10.0.403, net10.0, macOS arm64. Observed in tests/TUnit.TestProject/Bugs/_7426/Tests.cs before adding explicit generic arguments while validating #7426.
Please include inherited [Arguments] rows in compile-time generic class inference.
Activity
Fix inherited class type supply for null method rows (#7490)
Preserve null inference with inherited generic test attributes (#7490)
Include inherited constructor data sources in generic row matching (#…
Fix inherited Arguments generic class inference (#7490)
Fix inherited class type supply for null method rows (#7490)
Preserve null inference with inherited generic test attributes (#7490)
Include inherited constructor data sources in generic row matching (#…
Refresh inherited arguments snapshot after main updates (#7490)
Infer inherited constructor source types before null method rows (#7490)
Restrict inherited declared-row inference to own-class sources (#7490)
Preserve inherited source inference during row partitioning (#7490)
fix(generator): preserve declared source partitions and empty rows (#…
Preserve method providers on inferred constructor entries (#7490)
Reject open class inference from inherited method providers (#7490)
Preserve explicit class fallbacks and external method rows (#7490)
Preserve literal constructor rows and typed method sources (#7490)
Fix #7490: retain compatible providers on explicit class entries
Fix inferred constructor method row matching for #7490
Preserve explicit fallback and deferred constructor rows (#7490)
Keep deferred constructor sources active beside inferred rows (#7490)
Fix inherited deferred constructor providers (#7490)
Emit sole deferred constructor providers (#7490)