-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Simplify InterceptedMethods. Fix #439 #485
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
Conversation
} /* else if (isPrimitiveValueClass(qual.tpe.typeSymbol)) { | ||
lazy val Select(qual, _) = tree.fun | ||
val Any_## = this.Any_## | ||
val Any_!= = this.Any_!= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not:
val Any_## = defn.Any_##
val Any_!= = defn.Any_!=
The documentation for the class says:
But this is no longer the case, this comment needs to be updated. |
I wonder if |
0897d90
to
525d062
Compare
It could. But I would better leave it as is. We do not need full overload resolution(which could be resource-intensive) |
525d062
to
f36e452
Compare
* - `x == y` for == in class Any becomes `x equals y` with equals in class Object. | ||
* - `x != y` for != in class Any becomes `!(x equals y)` with equals in class Object. | ||
* - `x.##` for ## in other classes becomes calls to ScalaRunTime.hash, | ||
* - `x != y` for != in class Any becomes `!(x != y)` with != in class Any. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo, should be !(x == y) with == in ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. Thanks for noticing.
I'd better go and have some rest.
f36e452
to
afaec82
Compare
LGTM |
Simplify InterceptedMethods. Fix #439
It's now a single pattern-match, instead of series of nested ifs.
review by @smarter