diff --git a/compiler/test-resources/repl/i4536 b/compiler/test-resources/repl/i4536 new file mode 100644 index 000000000000..97326fb45852 --- /dev/null +++ b/compiler/test-resources/repl/i4536 @@ -0,0 +1,14 @@ +scala> object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo() } +1 | object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo() } + | ^^^ + |Ambiguous overload. The overloaded alternatives of method apply in object Foo with types + | ()(implicit ord: Ordering[Int]): Int + | (): Int + |both match arguments () +scala> object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo.apply() } +1 | object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo.apply() } + | ^^^^^^^^^ + |Ambiguous overload. The overloaded alternatives of method apply in object Foo with types + | ()(implicit ord: Ordering[Int]): Int + | (): Int + |both match arguments ()