-
Notifications
You must be signed in to change notification settings - Fork 131
Upgrade 2.13 #162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade 2.13 #162
Conversation
Given an overload with options like `(a: A, x: T)` and `(a: A, xs: T*)`, you'll get the first alternative when supplying two arguments: ``` scala> object O { def o(x: Int, y: String) = "1"; def o(x: Int, y: String*) = "multi" } defined object O scala> O.o(1, "a") res0: String = 1 ``` This is true on 2.12 and 2.13. I don't understand what the original code was testing, so I hope I fixed it correctly...
I can't imagine any reason for needing this |
|
same failure if I use the original |
It looks like it was trying to assert that the varargs method would be chosen when you call |
This is on:
|
This looks correct. The single-arg method is as specific as the varargs method but not vice versa, so it has a higher weight in overload resolution. |
We should find an agreement on how to land this PR and cut a release. It's blocking: |
As far as I can see, this PR is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a deprecation warning coming from 2.13.
[warn] /Users/renato/GitHub/lightbend/scala-logging/PR-162/src/main/scala/com/typesafe/scalalogging/LoggerMacro.scala:298:30: method treatEscapes in object StringContext is deprecated (since 2.13.0): use processEscapes
[warn] .map(StringContext.treatEscapes)
Maybe worth fixing it on this PR. Other than that, we would like to push this forward because it's blocking Kafka, Alpakka and Lagom.
@analytically do you have cycles to merge and cut a release with this, please? |
scala-logging_2.13.0-RC2-3.9.2 has been released |
Thanks so much @analytically |
Version upgrades for Scala-2.13.0-RC3: #165 (I will try to print, sign, scan and send individual CLA asap). |
Published scala-logging_2.13.0-RC3-3.9.2 |
Upgrade to 2.13.0-RC2 (note: there's a temporary hack to use RC1 artifacts for mockit-scala).
Also clarify (hopefully correctly) use of varargs (not really related to the 2.13 upgrade, but somehow it broke). /cc @szeiger, maybe you have an idea why? (something to do with the switch to immutable seq for varargs?)