You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am using XML literals, then I am seeing compile warnings starting with Scala version 2.13.9. I am using the sbt-tpolecat plugin so these are actually compile errors for me.
[error] ToDoItem.scala:5:5: unused value of type scala.xml.NodeBuffer (add `: Unit` to discard silently)
[error] <to-do-item>
[error] ^
[error] /ToDoItem.scala:6:7: unused value of type scala.xml.NodeBuffer (add `: Unit` to discard silently)
[error] <name>{name}</name>
Is this a bug or are the new unused warnings incompatible with XML literals? What do you recommend? Thank you.
The text was updated successfully, but these errors were encountered:
Note that under duress, it would be possible to generate different code in the compiler, at the cost of some complexity, but the simple and correct fix is to correct the signature of &+ aka addOne or append for NodeBuffer.
If I am using XML literals, then I am seeing compile warnings starting with Scala version 2.13.9. I am using the sbt-tpolecat plugin so these are actually compile errors for me.
Example:
Compile errors:
Is this a bug or are the new unused warnings incompatible with XML literals? What do you recommend? Thank you.
The text was updated successfully, but these errors were encountered: