Skip to content
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

private[this] syntax is deprecated in scala 3.4.x #1968

Open
KristianAN opened this issue Apr 7, 2024 · 2 comments
Open

private[this] syntax is deprecated in scala 3.4.x #1968

KristianAN opened this issue Apr 7, 2024 · 2 comments

Comments

@KristianAN
Copy link

The generated code will now cause the Scala 3.4.x compiler to emit the warning:

[warn] 36 |  private[this] def argEscape(k: String, v: String): String = Query.apply((k, Some(v))).toString
[warn]    |                ^
[warn]    |Ignoring [this] qualifier.
[warn]    |This syntax will be deprecated in the future; it should be dropped.
[warn]    |See: https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html
[warn]    |This construct can be rewritten automatically under -rewrite -source 3.4-migration.
@KristianAN
Copy link
Author

@KristianAN
Copy link
Author

Since the change changes the semantics of the program the easiest fix is maybe to just change from

private[this]

to

private[Http4sGenerator]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant