Skip to content

Commit 22b9275

Browse files
committed
Update checkfiles
1 parent e4a32e3 commit 22b9275

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/neg/classOf.check

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22
6 | def f1[T] = classOf[T] // error
33
| ^
44
| T is not a class type
5+
|
6+
| longer explanation available when compiling with `-explain`
57
-- [E170] Type Error: tests/neg/classOf.scala:7:32 ---------------------------------------------------------------------
68
7 | def f2[T <: String] = classOf[T] // error
79
| ^
810
| T is not a class type
911
|
1012
| where: T is a type in method f2 with bounds <: String
13+
|
14+
| longer explanation available when compiling with `-explain`
1115
-- [E170] Type Error: tests/neg/classOf.scala:9:18 ---------------------------------------------------------------------
1216
9 | val y = classOf[C { type I = String }] // error
1317
| ^^^^^^^^^^^^^^^^^^^^^
1418
| Test.C{type I = String} is not a class type
19+
|
20+
| longer explanation available when compiling with `-explain`

tests/neg/i13808.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
13 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
33
| ^^^^^^^^^^
44
| OpaqueTypes.OpaqueType is not a class type
5+
|
6+
| longer explanation available when compiling with `-explain`
57
-- [E170] Type Error: tests/neg/i13808.scala:13:49 ---------------------------------------------------------------------
68
13 |case class Boom[A](value: A) derives OpaqueType, Foo // error // error
79
| ^^^
810
| FooModule.Foo is not a class type
11+
|
12+
| longer explanation available when compiling with `-explain`

0 commit comments

Comments
 (0)