File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 2
2
6 | def f1[T] = classOf[T] // error
3
3
| ^
4
4
| T is not a class type
5
+ |
6
+ | longer explanation available when compiling with `-explain`
5
7
-- [E170] Type Error: tests/neg/classOf.scala:7:32 ---------------------------------------------------------------------
6
8
7 | def f2[T <: String] = classOf[T] // error
7
9
| ^
8
10
| T is not a class type
9
11
|
10
12
| where: T is a type in method f2 with bounds <: String
13
+ |
14
+ | longer explanation available when compiling with `-explain`
11
15
-- [E170] Type Error: tests/neg/classOf.scala:9:18 ---------------------------------------------------------------------
12
16
9 | val y = classOf[C { type I = String }] // error
13
17
| ^^^^^^^^^^^^^^^^^^^^^
14
18
| Test.C{type I = String} is not a class type
19
+ |
20
+ | longer explanation available when compiling with `-explain`
Original file line number Diff line number Diff line change 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
+ |
6
+ | longer explanation available when compiling with `-explain`
5
7
-- [E170] Type Error: tests/neg/i13808.scala:13:49 ---------------------------------------------------------------------
6
8
13 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
7
9
| ^^^
8
10
| FooModule.Foo is not a class type
11
+ |
12
+ | longer explanation available when compiling with `-explain`
You can’t perform that action at this time.
0 commit comments