aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/classOf.scala
blob: e13cf71c43a2a2db1a61934dd26b6038cee92e92 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                 
object Test {

  class C { type I }
  type A = C

  def f1[T] = classOf[T] // error
  def f2[T <: String] = classOf[T] // error
  val x = classOf[Test.type] // error
  val y = classOf[C { type I = String }] // error
  val z = classOf[A] // ok
}