File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
compiler/test-resources/repl Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change
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
+ |Ambiguous overload. The overloaded alternatives of method apply in object Foo with types
12
+ | ()(implicit ord: Ordering[Int]): Int
13
+ | (): Int
14
+ |both match arguments ()
You can’t perform that action at this time.
0 commit comments