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.
1 parent 8f63854 commit f1a6bdfCopy full SHA for f1a6bdf
tests/neg/i11544.check
@@ -0,0 +1,11 @@
1
+-- [E051] Reference Error: tests/neg/i11544.scala:6:13 -----------------------------------------------------------------
2
+6 | val n = m1.foo(23) // error
3
+ | ^^^^^^
4
+ | Ambiguous overload. The overloaded alternatives of method (str: String, int: Int): Int with types
5
+ | (str: String, int: Int): Int
6
+ | (arg: Int): Int
7
+ | both match arguments ((23 : Int))
8
+ |
9
+ | Note: Overloaded definitions introduced by refinements cannot be resolved
10
+
11
+longer explanation available when compiling with `-explain`
0 commit comments