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 Scala3.4.0-RC1-bin-SNAPSHOT-git-3b974c5 (21, JavaOpenJDK64-BitServerVM).
Type in expressions for evaluation. Ortry:help.
scala>deff(@deprecatedName x: Int) = x*2deff(x: Int):Int
scala> f(x=21)
valres0:Int=42
scala>deff(@deprecatedName("y") x: Int) = x*2deff(x: Int):Int
scala> f(y=21)
--Error:--------------------------------------------------------------------------------------------------------------1|f(y=21)
|^^^^| method f: (x: Int):Int does not have a parameter y
1 error found
Expectation
Welcome to Scala2.13.12 (OpenJDK64-BitServerVM, Java21).
Type in expressions for evaluation. Ortry:help.
scala>deff(@deprecatedName x: Int) = x*2deff(x: Int):Int
scala> f(x=21)
^warning: naming parameter x is deprecated.
valres0:Int=42
scala>deff(@deprecatedName("y") x: Int) = x*2deff(x: Int):Int
scala> f(y=21)
^warning: the parameter name y is deprecated: use x instead
valres1:Int=42
Perhaps Dotty hasn't been around long enough for anyone to change a parameter name.
This means it doesn't respect
scala> locally(x =42)
^warning: naming parameter x is deprecated.
valres0:Int=42
The text was updated successfully, but these errors were encountered:
Compiler version
3.4.0-RC1-bin-SNAPSHOT-git-3b974c5
Minimized code
Expectation
Perhaps Dotty hasn't been around long enough for anyone to change a parameter name.
This means it doesn't respect
The text was updated successfully, but these errors were encountered: