Skip to content

Conversation

@bash
Copy link
Member

@bash bash commented Feb 18, 2025

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 :)

@bash bash requested review from FreeApophis and Mafii February 18, 2025 20:25
@bash bash enabled auto-merge February 18, 2025 20:25
@bash bash merged commit ac0dde1 into main Mar 3, 2025
9 checks passed
@bash bash 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.

2 participants