Skip to content

Commit f1a6bdf

Browse files
committed
Add check file
1 parent 8f63854 commit f1a6bdf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/neg/i11544.check

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)