blob: 0318640e7b02b2dd8d946f4d30f45b2fc84e3ecd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object Foo { def eq(x: Int) = x }
class X { def ==(other: String) = other.nonEmpty }
object Test {
def main(args: Array[String]): Unit = {
Foo eq 1
new X == null
}
}
|