We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee9960f + 6c946e6 commit cd52ec0Copy full SHA for cd52ec0
compiler/test-resources/repl/i4536
@@ -0,0 +1,14 @@
1
+scala> object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo() }
2
+1 | object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo() }
3
+ | ^^^
4
+ |Ambiguous overload. The overloaded alternatives of method apply in object Foo with types
5
+ | ()(implicit ord: Ordering[Int]): Int
6
+ | (): Int
7
+ |both match arguments ()
8
+scala> object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo.apply() }
9
+1 | object Foo { def apply() = 1; def apply()(implicit ord: Ordering[Int]) = 2; Foo.apply() }
10
+ | ^^^^^^^^^
11
12
13
14
0 commit comments