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
package sbt.internal
type MiniUpdateConfiguration {
name: String!
classpath: [java.io.File]
}
type MiniUpdateReport {
configs: [MiniUpdateConfiguration]!
}
When I compile after running generateContrabands, I get the following error:
[error] ${BASE}/main/src/main/contraband-scala/sbt/internal/MiniUpdateReport.scala:22:26: private default argument in class MiniUpdateReport is never used
[error] private[this] def copy(configs: Vector[MiniUpdateConfiguration] = configs): MiniUpdateReport = {
If I add another field to MiniUpdateReport, the warnings go away. It looks like maybe the generated code shouldn't use default arguments? I suppose that would require inlining the defaults everywhere in the various with* methods.
I can work around the issue but figured I should report it.
The text was updated successfully, but these errors were encountered:
I generated the following contraband file in sbt:
When I compile after running
generateContrabands
, I get the following error:If I add another field to
MiniUpdateReport
, the warnings go away. It looks like maybe the generated code shouldn't use default arguments? I suppose that would require inlining the defaults everywhere in the variouswith*
methods.I can work around the issue but figured I should report it.
The text was updated successfully, but these errors were encountered: