File tree 4 files changed +29
-7
lines changed
4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 7
7
| Explanation (enabled by `-explain`)
8
8
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9
9
| 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.
12
12
| One possible issue with this representation is the reordering of the fields.
13
13
| Lets take the following example:
14
14
|
29
29
| Explanation (enabled by `-explain`)
30
30
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
31
31
| 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.
34
34
| One possible issue with this representation is the reordering of the fields.
35
35
| Lets take the following example:
36
36
|
Original file line number Diff line number Diff line change 7
7
| Explanation (enabled by `-explain`)
8
8
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9
9
| 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.
12
12
| One possible issue with this representation is the reordering of the fields.
13
13
| Lets take the following example:
14
14
|
Original file line number Diff line number Diff line change
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`
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ object CompilerCrash {
7
7
8
8
new Scope {
9
9
val commands = List (
10
- Cmd (List (" 1" , " 2" ))
10
+ Cmd (List (" 1" , " 2" )) // error // error
11
11
)
12
12
}
13
13
}
You can’t perform that action at this time.
0 commit comments