summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-12-10 11:16:41 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-12-10 11:16:41 -0800
commit0b77398be2fbfc9270ae8af0ef56964a5eab5537 (patch)
tree4697943eda1273fb23acc87c5d84b15c8c0147f9 /test/files
parentf40541788957c257ee8b4035e0063a8a48945c11 (diff)
parentbb427a34165b0338be8b23baeb61ac0591b3c0a1 (diff)
downloadscala-0b77398be2fbfc9270ae8af0ef56964a5eab5537.tar.gz
scala-0b77398be2fbfc9270ae8af0ef56964a5eab5537.tar.bz2
scala-0b77398be2fbfc9270ae8af0ef56964a5eab5537.zip
Merge pull request #3251 from retronym/ticket/8060
SI-8060 Avoid infinite loop with higher kinded type alias
Diffstat (limited to 'test/files')
-rw-r--r--test/files/pos/t8060.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t8060.scala b/test/files/pos/t8060.scala
new file mode 100644
index 0000000000..90e014d74b
--- /dev/null
+++ b/test/files/pos/t8060.scala
@@ -0,0 +1,11 @@
+trait M[F[_]]
+
+trait P[A] {
+ type CC[X] = P[X]
+ def f(p: A => Boolean): M[CC]
+}
+
+trait Other {
+ // was infinite loop trying to dealias `x$1.CC`
+ def g[A](p: A => Boolean): P[A] => M[P] = _ f p
+}