Skip to content

Commit 1281357

Browse files
committed
Merge pull request #422 from smarter/fix/InterceptedMethods-equals
InterceptedMethods: enable interception of == and !=
2 parents 93cf7c4 + 38e4195 commit 1281357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/InterceptedMethods.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class InterceptedMethods extends MiniPhaseTransform { thisTransform =>
103103
s"that means the intercepted methods set doesn't match the code")
104104
tree
105105
}
106-
if (tree.fun.symbol.isTerm && tree.args.isEmpty &&
106+
if (tree.fun.symbol.isTerm &&
107107
(interceptedMethods contains tree.fun.symbol.asTerm)) {
108108
val rewrite: Tree = tree.fun match {
109109
case Select(qual, name) =>

0 commit comments

Comments
 (0)