diff options
Diffstat (limited to 'test/files/neg/implicits.check')
-rw-r--r-- | test/files/neg/implicits.check | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/implicits.check b/test/files/neg/implicits.check new file mode 100644 index 0000000000..d1bbd2b3f0 --- /dev/null +++ b/test/files/neg/implicits.check @@ -0,0 +1,8 @@ +implicits.scala:21 error: ambiguous implicit value: + most specific definition is: method pos2int in object Super of type (Pos)scala.Int + yet alternative definition method any2plus in object Sub of type (scala.Any)Sub.Plus + is defined in a subclass. + Both definitions are possible conversion functions from Pos to ?{val +: ?} + f(p+1)
+ ^ +one error found |