Skip to content

Fix #2000: Make implicit and non-implicit functions incomparable #2014

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

Merged
merged 3 commits into from
Feb 22, 2017

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 21, 2017

Implicit and non-implicit functions are incomparable with <:<, but are
treated as equivalent with matches. This means implicit and non-implicit
functions of the same types override each other, but RefChecks will
give an error because their types are not subtypes.

Also contains a test for #2002.

… with <:<

Implicit and non-implicit functions are incomparable with <:<, but are
treated as equivalent with `matches`. This means implicit and non-implicit
functions of the same types override each other, but RefChecks will
give an error because their types are not subtypes.

Also contains a test for scala#2002.
@odersky
Copy link
Contributor Author

odersky commented Feb 22, 2017

The test failures are that i2002.scala still runs with -Yno-double-defs even though it should not, and locally it does not. Something seems to be wrong with the argument passing scheme under CI.

@odersky odersky merged commit 8a826ee into scala:master Feb 22, 2017
@allanrenucci allanrenucci deleted the fix-#2002 branch December 14, 2017 19: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.

1 participant