summaryrefslogtreecommitdiff
path: root/test/files/pos/t6014.scala
blob: 46e03bb55268e216084d2fbd8637eba8496aa4f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object Test {
  case class CC[T](key: T)
  type Alias[T] = Seq[CC[T]]

  def f(xs: Seq[CC[_]]) = xs map { case CC(x) => CC(x) }    // ok
  def g(xs: Alias[_])   = xs map { case CC(x) => CC(x) }    // fails
  // ./a.scala:11: error: missing parameter type for expanded function
  // The argument types of an anonymous function must be fully known. (SLS 8.5)
  // Expected type was: ?
  //   def g(xs: Alias[_])   = xs map { case CC(x) => CC(x) }    // fails
  //                                  ^
  // one error found
}