File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 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 |
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 |
Original file line number Diff line number Diff line change 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 |
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 {
77
88 new Scope {
99 val commands = List (
10- Cmd (List (" 1" , " 2" ))
10+ Cmd (List (" 1" , " 2" )) // error // error
1111 )
1212 }
1313}
You can’t perform that action at this time.
0 commit comments