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
Scala version: 2.13.9
class C { val xml = <xml><elem></elem></xml> def some = xml }
Warning produced on line 2: unused value of type scala.xml.NodeBuffer (add : Unit to discard silently)
unused value of type scala.xml.NodeBuffer (add
to discard silently)
Expected: the code compiles without warning.
The text was updated successfully, but these errors were encountered:
good catch, thanks! @som-snytt will likely want to take a look
Sorry, something went wrong.
Thanks, I'll take a look. My umbrella ticket is #12653, but I'll follow up here.
I would not have thought to check XML -- in case there is another ticket for "things we never compile when we compile the compiler."
@som-snytt I'm putting this on Backlog, but feel free to try to fix it for 2.13.11 anyway, if you're so inclined :-)
som-snytt
No branches or pull requests
Reproduction steps
Scala version: 2.13.9
Problem
Warning produced on line 2:
unused value of type scala.xml.NodeBuffer (add
: Unitto discard silently)
Expected: the code compiles without warning.
The text was updated successfully, but these errors were encountered: