diff options
Diffstat (limited to 'test/files/neg/overload.check')
-rw-r--r-- | test/files/neg/overload.check | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/overload.check b/test/files/neg/overload.check index 5f7644eda7..760702778b 100644 --- a/test/files/neg/overload.check +++ b/test/files/neg/overload.check @@ -1,7 +1,7 @@ -overload.scala:10: error: erroneous reference to overloaded definition, -most specific definition is: method f in class C of type (int)Unit, -yet alternative definition method f in class D of type (Any)Unit -is defined in a subclass +overload.scala:10: error: ambiguous reference to overloaded definition, +both method f in class D of type (Any)Unit +and method f in class C of type (int)Unit +match argument types (Int) (new D).f(1) ^ one error found |