diff options
author | Miles Sabin <miles@milessabin.com> | 2016-05-20 12:49:25 +0100 |
---|---|---|
committer | Miles Sabin <miles@milessabin.com> | 2016-08-15 11:08:42 +0100 |
commit | 9e2b10fc02a60a8e24c38a8f0e52b5196c47145f (patch) | |
tree | da071cc172274c2a02baa232b70fe54c2a24a10f /test/files/pos/t2712-6.scala | |
parent | 81a67eeacc7d2622ee364a21203b227142e2043e (diff) | |
download | scala-9e2b10fc02a60a8e24c38a8f0e52b5196c47145f.tar.gz scala-9e2b10fc02a60a8e24c38a8f0e52b5196c47145f.tar.bz2 scala-9e2b10fc02a60a8e24c38a8f0e52b5196c47145f.zip |
SI-2712 Add support for higher order unification
Diffstat (limited to 'test/files/pos/t2712-6.scala')
-rw-r--r-- | test/files/pos/t2712-6.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t2712-6.scala b/test/files/pos/t2712-6.scala new file mode 100644 index 0000000000..eefe769ad6 --- /dev/null +++ b/test/files/pos/t2712-6.scala @@ -0,0 +1,12 @@ +package test + +object Tags { + type Tagged[A, T] = {type Tag = T; type Self = A} + + type @@[T, Tag] = Tagged[T, Tag] + + trait Disjunction + + def meh[M[_], A](ma: M[A]): M[A] = ma + meh(null.asInstanceOf[Int @@ Disjunction]) +} |