summaryrefslogtreecommitdiff
path: root/test/files/pos/t6091.scala
blob: 72e663ec3b2608aa0c3fb9faf90ebeeca4caf1a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Foo { def eq(x:Int) = x }

class X { def ==(other: String) = true }

object Test {
  def main(args: Array[String]): Unit = {
    Foo eq 1
    new X == null
  }
}