summaryrefslogtreecommitdiff
path: root/test/files/pos/sammy_implicit.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/sammy_implicit.scala')
-rw-r--r--test/files/pos/sammy_implicit.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/sammy_implicit.scala b/test/files/pos/sammy_implicit.scala
new file mode 100644
index 0000000000..ab63fc729e
--- /dev/null
+++ b/test/files/pos/sammy_implicit.scala
@@ -0,0 +1,11 @@
+trait Fun[A, B] { def apply(a: A): B }
+
+abstract class SamImplicitConvert {
+ 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]
+
+ def encoded = flatMap (_.getBytes)
+}