Skip to content

Commit cd9a7c5

Browse files
committed
Fix check files
1 parent 472555d commit cd9a7c5

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

tests/neg/i20554-a.check

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
| Explanation (enabled by `-explain`)
88
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
99
| Starting from Scala 3.6.0, named arguments are required for Java defined annotations.
10-
| Java defined annotations don't have an exact constructor representation
11-
| and we previously relied on the order of the fields to create one.
10+
| Java defined annotations don't have an exact constructor representation
11+
| and we previously relied on the order of the fields to create one.
1212
| One possible issue with this representation is the reordering of the fields.
1313
| Lets take the following example:
1414
|
@@ -29,8 +29,8 @@
2929
| Explanation (enabled by `-explain`)
3030
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3131
| Starting from Scala 3.6.0, named arguments are required for Java defined annotations.
32-
| Java defined annotations don't have an exact constructor representation
33-
| and we previously relied on the order of the fields to create one.
32+
| Java defined annotations don't have an exact constructor representation
33+
| and we previously relied on the order of the fields to create one.
3434
| One possible issue with this representation is the reordering of the fields.
3535
| Lets take the following example:
3636
|

tests/neg/i20554-b.check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
| Explanation (enabled by `-explain`)
88
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
99
| Starting from Scala 3.6.0, named arguments are required for Java defined annotations.
10-
| Java defined annotations don't have an exact constructor representation
11-
| and we previously relied on the order of the fields to create one.
10+
| Java defined annotations don't have an exact constructor representation
11+
| and we previously relied on the order of the fields to create one.
1212
| One possible issue with this representation is the reordering of the fields.
1313
| Lets take the following example:
1414
|

tests/neg/i21543.check

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
-- [E007] Type Mismatch Error: tests/neg/i21543.scala:10:15 ------------------------------------------------------------
2+
10 | Cmd(List("1", "2")) // error // error
3+
| ^^^
4+
| Found: ("1" : String)
5+
| Required: Event
6+
|
7+
| Note that I could not resolve reference Event.
8+
| Event is a private member in a base class
9+
|
10+
|
11+
| longer explanation available when compiling with `-explain`
12+
-- [E007] Type Mismatch Error: tests/neg/i21543.scala:10:20 ------------------------------------------------------------
13+
10 | Cmd(List("1", "2")) // error // error
14+
| ^^^
15+
| Found: ("2" : String)
16+
| Required: Event
17+
|
18+
| Note that I could not resolve reference Event.
19+
| Event is a private member in a base class
20+
|
21+
|
22+
| longer explanation available when compiling with `-explain`

tests/neg/i21543.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object CompilerCrash {
77

88
new Scope {
99
val commands = List(
10-
Cmd(List("1", "2"))
10+
Cmd(List("1", "2")) // error // error
1111
)
1212
}
1313
}

0 commit comments

Comments
 (0)