File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- -- [E079 ] Type Error: tests/neg/classOf.scala:6:22 ---------------------------------------------------------------------
1+ -- [E170 ] Type Error: tests/neg/classOf.scala:6:22 ---------------------------------------------------------------------
226 | def f1[T] = classOf[T] // error
33 | ^
44 | T is not a class type
5- -- [E079 ] Type Error: tests/neg/classOf.scala:7:32 ---------------------------------------------------------------------
5+ -- [E170 ] Type Error: tests/neg/classOf.scala:7:32 ---------------------------------------------------------------------
667 | def f2[T <: String] = classOf[T] // error
77 | ^
88 | T is not a class type
99 |
1010 | where: T is a type in method f2 with bounds <: String
11- -- [E079 ] Type Error: tests/neg/classOf.scala:9:18 ---------------------------------------------------------------------
11+ -- [E170 ] Type Error: tests/neg/classOf.scala:9:18 ---------------------------------------------------------------------
12129 | val y = classOf[C { type I = String }] // error
1313 | ^^^^^^^^^^^^^^^^^^^^^
1414 | Test.C{I = String} is not a class type
Original file line number Diff line number Diff line change 1- -- [E079 ] Type Error: tests/neg/i13808.scala:13:37 ---------------------------------------------------------------------
1+ -- [E170 ] Type Error: tests/neg/i13808.scala:13:37 ---------------------------------------------------------------------
2213 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
33 | ^^^^^^^^^^
44 | OpaqueTypes.OpaqueType is not a class type
5- -- [E079 ] Type Error: tests/neg/i13808.scala:13:49 ---------------------------------------------------------------------
5+ -- [E170 ] Type Error: tests/neg/i13808.scala:13:49 ---------------------------------------------------------------------
6613 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
77 | ^^^
88 | FooModule.Foo is not a class type
Original file line number Diff line number Diff line change 1- -- [E079 ] Type Error: tests/neg/i15155.scala:10:33 ---------------------------------------------------------------------
1+ -- [E170 ] Type Error: tests/neg/i15155.scala:10:33 ---------------------------------------------------------------------
2210 | val EnumerationClass = classOf[EnumValue[E]] // error
33 | ^^^^^^^^^^^^
44 | EnumValue[E] is not a class type
You can’t perform that action at this time.
0 commit comments