summaryrefslogtreecommitdiff
path: root/test/files/pos/t9135.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-04-09 23:04:17 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-04-09 23:04:17 +1000
commitcdb05edb4e9261c86bf1cf5620fe7012f7d53117 (patch)
tree1ba8cd27785d35263e9647f060423633dda965cf /test/files/pos/t9135.scala
parent293625e7bb685514ce82a0400bbd7ba5708d6553 (diff)
parentf49b447cf9d08524c08ff9f57cf04938806f6f73 (diff)
downloadscala-cdb05edb4e9261c86bf1cf5620fe7012f7d53117.tar.gz
scala-cdb05edb4e9261c86bf1cf5620fe7012f7d53117.tar.bz2
scala-cdb05edb4e9261c86bf1cf5620fe7012f7d53117.zip
Merge pull request #4424 from lrytz/merge/2.11-to-2.12-apr-1
Merge/2.11 to 2.12 apr 1
Diffstat (limited to 'test/files/pos/t9135.scala')
-rw-r--r--test/files/pos/t9135.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t9135.scala b/test/files/pos/t9135.scala
new file mode 100644
index 0000000000..1e2c97baf9
--- /dev/null
+++ b/test/files/pos/t9135.scala
@@ -0,0 +1,16 @@
+
+class Free[A] {
+
+
+ this match {
+ case a @ Gosub() => gosub(a.a)(x => gosub(???)(???))
+ }
+ def gosub[A, B](a0: Free[A])(f0: A => Any): Free[B] = ???
+}
+
+
+
+ case class Gosub[B]() extends Free[B] {
+ type C
+ def a: Free[C] = ???
+ }