Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect cast in TreeSelectionModelBase #282

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

grokys
Copy link
Member

@grokys grokys commented Apr 15, 2024

GetChildren is typed as an IEnumerable<T> but we were casting it to an IReadOnlyList<T>. This works for most cases, but we're not respecting the API.

This PR changes the code to handle the case where an actual enumerable is returned.

`GetChildren` is typed as an `IEnumerable<T>` but we were casting it to an `IReadOnlyList<T>`. Handle an actual enumerable being returned.
Copy link
Collaborator

@danipen danipen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grokys grokys merged commit 56ac897 into master Apr 16, 2024
5 checks passed
@grokys grokys deleted the fixes/selection-model-enumerable branch April 16, 2024 19:43
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