Commit df5efbe
committed
Fix #6151: MatchError for imported java enum Values
When emitting annotations' arguments from the `DottyBackendInterface`,
the case when the argument value can be an `Ident` is not considered.
This commit generalises the `Select` case to `RefTree`, so that both
`Select` and `Ident` are considered.1 parent 574fd0c commit df5efbe
File tree
4 files changed
+6
-1
lines changed- compiler/src/dotty/tools/backend/jvm
- tests/pos/i6151
4 files changed
+6
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments