summaryrefslogtreecommitdiff
path: root/test/files/pos/t7033.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t7033.scala')
-rw-r--r--test/files/pos/t7033.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t7033.scala b/test/files/pos/t7033.scala
new file mode 100644
index 0000000000..a4d256673b
--- /dev/null
+++ b/test/files/pos/t7033.scala
@@ -0,0 +1,15 @@
+import language.higherKinds
+object Wrap {
+ implicit class X[X](val a: X)
+
+ X[Int](0)
+}
+
+class Wrap {
+ implicit class Y[Y](val a: Y)
+ Y[Int](0)
+ implicit class Z[Z[_]](val a: Z[Wrap.this.Z[Z]])
+ Z[List](List(new Z[List](null)))
+}
+
+case class X[X](val a: X)