We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Signature of Iterable foreach function is like :
def foreach[U](f: A => U): Unit
Usually, this is used like this:
val someIterable: Seq[SomeType] = ??? someIterable.foreach { entry => // ... }
WartRemover will complain with the following error:
[wartremover:AnyVal] Inferred type containing AnyVal: AnyVal
The only to prevent the error is to write the code like this :
val someIterable: Seq[SomeType] = ??? someIterable.foreach[SomeType] { entry => // ... }
While "logical", this behaviour is quite unwanted for me.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Signature of Iterable foreach function is like :
Usually, this is used like this:
WartRemover will complain with the following error:
The only to prevent the error is to write the code like this :
While "logical", this behaviour is quite unwanted for me.
The text was updated successfully, but these errors were encountered: