summaryrefslogblamecommitdiff
path: root/test/files/neg/not-possible-cause.check
blob: 9111cd0d3d66b65743d8aaa731c2b398ec36f0cd (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                      
not-possible-cause.scala:2: error: type mismatch;
 found   : a.type (with underlying type A)
 required: AnyRef
Note that implicit conversions are not applicable because they are ambiguous:
 both method any2stringfmt in object Predef of type (x: Any)scala.runtime.StringFormat
 and method any2stringadd in object Predef of type (x: Any)scala.runtime.StringAdd
 are possible conversion functions from a.type to AnyRef
  def foo[A <: Product](a: A) { type X = a.type }
                                         ^
one error found