Skip to content

Fix warnings with Scala 3.9 - #4902

Merged
satorg merged 1 commit into
typelevel:mainfrom
xuwei-k:implicit-using
Sep 19, 2026
Merged

satorg merged 1 commit into
typelevel:mainfrom
xuwei-k:implicit-using

Conversation

@xuwei-k

@xuwei-k xuwei-k commented Sep 9, 2026

Copy link
Copy Markdown
Contributor
Welcome to Scala 3.9.0 (21.0.12, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.
                                                                                                                                            
scala> def foo(implicit x: Int): Int = x
def foo(implicit x: Int): Int
                                                                                                                                            
scala> foo(2)
1 warning found
-- Warning: --------------------------------------------------------------------
1 |foo(2)
  |    ^
  |Implicit parameters should be provided with a `using` clause.
  |To disable the warning, please use the following option:
  |  "-Wconf:msg=Implicit parameters should be provided with a `using` clause:s"
val res0: Int = 2
                                                                                                                                            
scala> foo(using 2)
val res1: Int = 2

@satorg

satorg commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Makes sense, thank you!
Curiously, it was partially addressed in #4806, but apparently not everything was cleaned up back then.

@satorg
satorg merged commit dd1d080 into typelevel:main Sep 19, 2026
16 checks passed
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

Successfully merging this pull request may close these issues.

2 participants