class C[T]
class D[type T] // error: identifier expected, but `type` found

object Test {

  val x: C[T = Int] = // error:  ']' expected, but `=` found // error
    new C[T = Int] // error:  ']' expected, but `=` found // error

  class E extends C[T = Int] // error: ']' expected, but `=` found // error
  class F extends C[T = Int]() // error: ']' expected, but `=` found // error

  def f[X, Y](x: X, y: Y): Int = ???

  f[X = Int, String](1, "") // error
  f[X = Int][X = Int][Y = String](1, "") // error
}

class C[T]
class D[type T] // error: identifier expected, but `type` found

object Test {

  val x: C[T = Int] = // error:  ']' expected, but `=` found // error
    new C[T = Int] // error:  ']' expected, but `=` found // error

  class E extends C[T = Int] // error: ']' expected, but `=` found // error
  class F extends C[T = Int]() // error: ']' expected, but `=` found // error

  def f[X, Y](x: X, y: Y): Int = ???

  f[X = Int, String](1, "") // error // error
  f[X = Int][X = Int][Y = String](1, "") // error
}

Fix build: missing error marker in neg test
Fix build: missing error marker in neg test
