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
Generated invokers fail to convert nested tuple elements for generic tests #7485
A method data source returning (int, (int, string)) cannot bind to a generic test parameter (T, (int, object)) in source-generated mode. C# permits the element conversions, but the generated invoker throws InvalidCastException on the inner tuple.
Run this class in source-generated mode with a targeted treenode filter.
Expected and actual
The test should run with T = int and retain the tuple elements. Instead, CastHelper.Cast<T> in the generated invoker tries to cast ValueTuple<int, string> directly to ValueTuple<int, object> and fails. Generate recursive tuple element conversions for nested tuple parameters.
Environment
.NET SDK 10.0.403, net10.0, macOS arm64. Reproduced against main 9100521 while implementing #7482; the generated path is unchanged by that reflection-only fix. Distinct from initializer mutations in #7484 and reference-tuple analyzer diagnostics in #7480.
Activity
Fix nullable nested tuple conversion and bind tuple inputs once (#7485)
Fix recursive generated tuple argument conversions (#7485)
Fix nullable nested tuple conversion and bind tuple inputs once (#7485)
Refresh tuple snapshots after rebasing (#7485)
Fix recursive generated tuple argument conversions (#7515)