groovy_koans icon indicating copy to clipboard operation
groovy_koans copied to clipboard

Overloading == operator

Open xordspar0 opened this issue 6 years ago • 0 comments

The OperatorOverloadingKoans.testEqualsOperator test has a mistake. Defining a .equals method does not affect the behavior or the == operator. Relational operators are overloaded using the .compareTo method. See http://groovy-lang.org/operators.html#Operator-Overloading

xordspar0 avatar Oct 24 '17 18:10 xordspar0