Skip to content

Implicit parameters should emit a warning at call site #22440

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

Closed
hamzaremmal opened this issue Jan 23, 2025 · 1 comment · Fixed by #22441
Closed

Implicit parameters should emit a warning at call site #22440

hamzaremmal opened this issue Jan 23, 2025 · 1 comment · Fixed by #22441
Assignees
Labels
area:implicits related to implicits itype:bug
Milestone

Comments

@hamzaremmal
Copy link
Member

Compiler version

0e567c1

Minimized code

def foo(implicit x: Int): Int = x
foo(0)

Output

Compiles without a warning

Expectation

The call to foo(0) should emit a warning and suggest using a using parameter list

@hamzaremmal
Copy link
Member Author

Scala Core decided to emit this warning starting from 3.7

@hamzaremmal hamzaremmal changed the title Implicit parameters should emit a warning under -source future at call site Implicit parameters should emit a warning at call site Feb 2, 2025
@hamzaremmal hamzaremmal added this to the 3.7.0 milestone Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:implicits related to implicits itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant