diff options
Diffstat (limited to 'tests/untried/pos/t6091.scala')
-rw-r--r-- | tests/untried/pos/t6091.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/pos/t6091.scala b/tests/untried/pos/t6091.scala new file mode 100644 index 000000000..72e663ec3 --- /dev/null +++ b/tests/untried/pos/t6091.scala @@ -0,0 +1,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 + } +} |