Skip to content

Conversation

@cirras
Copy link
Collaborator

@cirras cirras commented Aug 6, 2025

This PR fixes a type comparison inaccuracy where class-to-class upcasts weren't always preferred over class-to-interface upcasts.

The downstream effects were incorrect overload resolution, and false positives in rules like ObjectPassedAsInterface where the rule would think an object was being passed to an interface parameter on the incorrectly-selected overload.

@cirras cirras requested a review from fourls August 6, 2025 03:07
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good!

@fourls fourls merged commit 41a1799 into master Aug 6, 2025
4 checks passed
@fourls fourls deleted the object_interface_overload_resolution branch August 6, 2025 05:18
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