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
Welcome to Scala 3.3.2-RC1-bin-SNAPSHOT-git-348729e (20.0.1, Java OpenJDK 64-Bit Server VM).
Minimized code
Welcome to Scala3.3.2-RC1-bin-SNAPSHOT-git-348729e (20.0.1, JavaOpenJDK64-BitServerVM).
Type in expressions for evaluation. Ortry:help.
scala>@deprecated("now","0.1") caseclassK(k: Int)
// defined case class K
scala>caseclassK(@deprecated("now","0.1") k: Int)
2 warnings found
--DeprecationWarning:------------------------------------------------------------------------------------------------1|caseclassK(@deprecated("now","0.1") k: Int)
|^| value k in classK is deprecated since 0.1: now
--DeprecationWarning:------------------------------------------------------------------------------------------------1|caseclassK(@deprecated("now","0.1") k: Int)
|^| value k in classK is deprecated since 0.1: now
// defined case class K
scala>
Synthetic members of case classes should not incur deprecation warnings
when a case element is deprecated.
Fixes#17908
Also when message in Java deprecation is empty, improve
```
-- Deprecation Warning: ------------------------------------------------------------------------------------------------
1 |f
|^
|method f is deprecated since :
val res0: Int = 42
```
to
```
-- Deprecation Warning: ------------------------------------------------------------------------------------------------
1 |f
|^
|method f is deprecated
val res0: Int = 42
```
Compiler version
Welcome to Scala 3.3.2-RC1-bin-SNAPSHOT-git-348729e (20.0.1, Java OpenJDK 64-Bit Server VM).
Minimized code
Expectation
No deprecation at definition.
Follow-up to #11022.
Noticed at https://github.com/scalapb/ScalaPB/blob/master/scalapb-runtime/src/main/js-native/com/google/protobuf/descriptor/FileOptions.scala#L94
I wonder if this issue is in time for the Scala Days spree!
The text was updated successfully, but these errors were encountered: