Skip to content

Conversation

@tautropfli
Copy link
Member

Currently using IndexOfOrNone on a concrete immutable collection such as ImmutableArray or ImmutableList results in an ambiguous overload error.

This was not directly fixable using [OverloadResolutionPriority] since the conflicting extension methods are in two different classes.

I moved the immutable list overloads to ListExtensions but kept the old methods around to avoid a binary breaking change. I only removed the this modifier (which is not a binary breaking change, see #346)

This PR is probably best reviewed on a per-commit basis :)

@tautropfli tautropfli merged commit ac0dde1 into main Mar 3, 2025
9 checks passed
@tautropfli tautropfli deleted the fix-list-index-of-or-none branch March 3, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants