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

Missed source compatibility problem with ambiguous overloads. #52

Open
lbergelson opened this issue Sep 7, 2018 · 0 comments
Open

Missed source compatibility problem with ambiguous overloads. #52

lbergelson opened this issue Sep 7, 2018 · 0 comments

Comments

@lbergelson
Copy link

When adding additional overloads that have the same number of parameters to an existing method, it causes a potential source compatibility issue due to the type inference of null.

ex:
Existing method

public void doThing(File file){...}

Adding the following overload will cause compilation errors in sites that make a call with a null parameter.

public void doThing(Path path){...}
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

No branches or pull requests

1 participant