You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> final final case class Foo()
-- [E015] Syntax Error: --------------------------------------------------------
1 |final final case class Foo()
| ^^^^^
| Repeated modifier final
|
| longer explanation available when compiling with `-explain`
I also originally noticed this when trying the action shown in here since the code action was only able to be triggered when I was on class instead of final.
Expectation
I would expect that the ^^^ location and the actual diagnostic range to be covering the final modifiers since that's where the issue actual is.
The text was updated successfully, but these errors were encountered:
Currently given the following code snippet:
```scala
final final case class Foo()
```
The error is reported on `Foo` and not on the repeated modifier. This
change change the reporting to instead report on the repeated modifier
`final`.
Fixesscala#17981
Currently given the following code snippet:
```scala
final final case class Foo()
```
The error is reported on `Foo` and not on the repeated modifier. This
changes the reporting to instead report on the repeated modifier
`final`.
Fixes#17981
Currently given the following code snippet:
```scala
final final case class Foo()
```
The error is reported on `Foo` and not on the repeated modifier. This
changes the reporting to instead report on the repeated modifier
`final`.
Fixes#17981
[Cherry-picked 10180da]
Currently given the following code snippet:
```scala
final final case class Foo()
```
The error is reported on `Foo` and not on the repeated modifier. This
changes the reporting to instead report on the repeated modifier
`final`.
Fixes#17981
[Cherry-picked 10180da]
Compiler version
3.3.2-RC1-bin-20230614-302be2f-NIGHTLY-git-302be2f
Minimized code
Output
I also originally noticed this when trying the action shown in here since the code action was only able to be triggered when I was on
class
instead offinal
.Expectation
I would expect that the
^^^
location and the actual diagnostic range to be covering thefinal
modifiers since that's where the issue actual is.The text was updated successfully, but these errors were encountered: