summaryrefslogtreecommitdiff
path: root/test/files/pos/t8708/Test_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t8708/Test_2.scala')
-rw-r--r--test/files/pos/t8708/Test_2.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/t8708/Test_2.scala b/test/files/pos/t8708/Test_2.scala
new file mode 100644
index 0000000000..d0e56b9a37
--- /dev/null
+++ b/test/files/pos/t8708/Test_2.scala
@@ -0,0 +1,13 @@
+import scala.language.higherKinds
+
+trait ClientTypes[M[+_]] {
+ final type Context[+A] = EitherT[M, String, A]
+ object Context {
+ def apply[A](ca: M[String \/ A]): Context[A] = EitherT[M, String, A](ca)
+ }
+
+ final type StatefulContext[+A] = EitherT[Context, String, A]
+ object StatefulContext {
+ def apply[A](state: Context[String \/ A]): StatefulContext[A] = ???
+ }
+}