aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/namedTypeParams.scala
blob: 75bb1cd7e20328cfd91ed793e8180920787f35df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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

}