Commit 81596c1
Revert the To<T> array swap; keep params IEnumerable + priority
The Phase 4 change of To<T>'s params overload from IEnumerable to a
(Field,Column)[] array gave no functional benefit: params IEnumerable<(...)>
accepts the identical call shapes (multi-arg new(...), collection expressions,
tuples), verified empirically. The array was only ever REQUIRED for the Results
family, whose same-arity IEnumerable sibling caused a CS0111 collision -- To<T>'s
sibling has an extra `bool clearSourceTable`, so no collision, so IEnumerable is
fine and is the more flexible (a List binds the params overload directly).
The real enabler was the [OverloadResolutionPriority(1)] added alongside, which
disambiguates the collection-expression forms; that stays. Only the array->
IEnumerable swap is reverted. PublicAPI baseline updated.
Build 0/0; 102 tests (To<T> assumption tests now bind through params IEnumerable).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3b39a85 commit 81596c1
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| |||
0 commit comments