aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t3452f.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/run/t3452f.scala')
-rw-r--r--tests/pending/run/t3452f.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/pending/run/t3452f.scala b/tests/pending/run/t3452f.scala
new file mode 100644
index 000000000..af64f5c04
--- /dev/null
+++ b/tests/pending/run/t3452f.scala
@@ -0,0 +1,19 @@
+import language.higherKinds
+
+trait GenSet[A]
+
+trait GenSetTemplate[A, +CC[X] <: GenSet[X]] {
+ def empty: CC[A] = ???
+}
+
+trait SetLike[A, +This <: SetLike[A, This] with Set[A]] {
+ def empty: This
+}
+
+abstract class Set[A] extends GenSet[A] with SetLike[A,Set[A]] with GenSetTemplate[A,Set]
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ locally(classOf[Set[_]]) // trigger classloading to verify class
+ }
+}