summaryrefslogtreecommitdiff
path: root/test/files/pos/sammy_implicit.scala
blob: c9c2519bab96d324853f897c55a005308555a516 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
abstract class SamImplicitConvert {
  trait Fun[A, B] { def apply(a: A): B }
  class Lst[T]
  abstract class Str { def getBytes: Array[Int] }
  def flatMap[B](f: Fun[Str, Lst[B]]): List[B] = ???

  implicit def conv(xs: Array[Int]): Lst[Int]

  val encoded = flatMap (_.getBytes)
}