File tree 3 files changed +6
-6
lines changed
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 ---------------------------------------------------------------------
2
2
6 | def f1[T] = classOf[T] // error
3
3
| ^
4
4
| 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 ---------------------------------------------------------------------
6
6
7 | def f2[T <: String] = classOf[T] // error
7
7
| ^
8
8
| T is not a class type
9
9
|
10
10
| 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 ---------------------------------------------------------------------
12
12
9 | val y = classOf[C { type I = String }] // error
13
13
| ^^^^^^^^^^^^^^^^^^^^^
14
14
| 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 ---------------------------------------------------------------------
2
2
13 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
3
3
| ^^^^^^^^^^
4
4
| 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 ---------------------------------------------------------------------
6
6
13 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
7
7
| ^^^
8
8
| 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 ---------------------------------------------------------------------
2
2
10 | val EnumerationClass = classOf[EnumValue[E]] // error
3
3
| ^^^^^^^^^^^^
4
4
| EnumValue[E] is not a class type
You can’t perform that action at this time.
0 commit comments