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

Widen argument type of Mock.operator == #718

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Widen argument type of Mock.operator ==

When mocking a class C we say Mock implements C so for
this to compile Mock has to be a valid implementation of C.

This wasn't the case for classes with an overridden operator == that
accepts dynamic or Object?. Widen the Mock.operator == argument's
type to accomodate for this case.

When mocking a class `C` we say `Mock implements C` so for
this to compile `Mock` has to be a valid implementation of `C`.

This wasn't the case for classes with an overridden `operator ==` that
accepts `dynamic` or `Object?`. Widen the `Mock.operator ==` argument's
type to accomodate for this case.

PiperOrigin-RevId: 582683687
@kevmoo kevmoo closed this Nov 16, 2023
@kevmoo kevmoo deleted the test_582683687 branch November 16, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant