diff options
author | Miles Sabin <miles@milessabin.com> | 2016-05-20 12:49:25 +0100 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2016-05-24 08:46:40 +0100 |
commit | 892a6d6878accb67e3fe68aefaa256396db05a90 (patch) | |
tree | 89024c06147fddf825904bc5891e1ee2cbf4c2d1 /test/files/pos/t2712-4.scala | |
parent | 207e32df30fd733e4dd1cb28fb8cb5c3153c21a6 (diff) | |
download | scala-892a6d6878accb67e3fe68aefaa256396db05a90.tar.gz scala-892a6d6878accb67e3fe68aefaa256396db05a90.tar.bz2 scala-892a6d6878accb67e3fe68aefaa256396db05a90.zip |
SI-2712 Add support for higher order unification
Diffstat (limited to 'test/files/pos/t2712-4.scala')
-rw-r--r-- | test/files/pos/t2712-4.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t2712-4.scala b/test/files/pos/t2712-4.scala new file mode 100644 index 0000000000..3e2e5cddae --- /dev/null +++ b/test/files/pos/t2712-4.scala @@ -0,0 +1,17 @@ +package test + +object Test1 { + trait X + trait Y extends X + class Foo[T, U <: X] + def meh[M[_ <: A], A](x: M[A]): M[A] = x + meh(new Foo[Int, Y]) +} + +object Test2 { + trait X + trait Y extends X + class Foo[T, U >: Y] + def meh[M[_ >: A], A](x: M[A]): M[A] = x + meh(new Foo[Int, X]) +} |