diff options
Diffstat (limited to 'test/files/neg/implicits.check')
-rw-r--r-- | test/files/neg/implicits.check | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/files/neg/implicits.check b/test/files/neg/implicits.check index 409d6ce6a7..b84586fc16 100644 --- a/test/files/neg/implicits.check +++ b/test/files/neg/implicits.check @@ -2,10 +2,9 @@ implicits.scala:21: error: type mismatch; found : Pos required: ?{val +: ?} Note that implicit conversions are not applicable because they are ambiguous: - most specific definition is: method pos2int in object Super of type (Pos)int - yet alternative definition method any2plus in object Sub of type (Any)Sub.Plus - is defined in a subclass. - Both definitions are possible conversion functions from Pos to ?{val +: ?} + both method any2plus in object Sub of type (Any)Sub.Plus + and method pos2int in object Super of type (Pos)int + are possible conversion functions from Pos to ?{val +: ?} f(p+1) ^ one error found |