summaryrefslogtreecommitdiff
path: root/test/files/neg/t9273.scala
blob: 3f99dff17f980f6864575933c2845541c18d8ee4 (plain) (blame)
1
2
3
4
5
6
7
8
9
class MissingLineNumbers {
  val foo: Class[_] = classOf            // error without position, line or file
  val foo1: Class[_] = classOf[X]        // good error, all info contained
  val foo2 = classOf                     // Infers  T=Nothing

  val foo3: Class[_] = Predef.classOf    // Infers  T=Nothing. Irregular wrt typedIdent.
  val foo4: Class[_] = Predef.classOf[X] // good error, all info contained
  val foo5 = Predef.classOf              // Infers  T=Nothing
}