blob: 1af86e6c058ae47f1b38b58fd2950fefadb00ad9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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)scala.Predef.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
|