aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t2712-1.scala
blob: 4f84c9df5edd09a93872a8d09f8fe21e3f4789c1 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                 
package test

// Original test case from,
//
//   https://issues.scala-lang.org/browse/SI-2712
object Test {
  def meh[M[_], A](x: M[A]): M[A] = x
  meh{(x: Int) => x} // solves ?M = [X] Int => X and ?A = Int ...
}