summaryrefslogtreecommitdiff
path: root/test/files/neg/t4221.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t4221.scala')
-rw-r--r--test/files/neg/t4221.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t4221.scala b/test/files/neg/t4221.scala
new file mode 100644
index 0000000000..0a8b8add18
--- /dev/null
+++ b/test/files/neg/t4221.scala
@@ -0,0 +1,10 @@
+class Cl {
+ class Sub[TheSub <: Sub[TheSub]]
+}
+
+case class Wrapper[T](v: T)
+
+object O {
+ def wrap[S <: Cl#Sub[S]](v: S): Wrapper[S] = {
+ }
+}