-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug
Milestone
Description
Compiler version
3.3.0 & 3.3.1-RC4
Minimized code
@SuppressWarnings(Array("UnusedMethodParameter"))
private[api] def serializeWith[P <: SerializationPack](
pack: P,
collation: Collation
)(builder: SerializationPack.Builder[pack.type]
): pack.Document = {
import builder.{ elementProducer => element, int, string, boolean }
val elements = Seq.newBuilder[pack.ElementProducer]
elements += element("locale", string(collation.locale))
??? // ...
}
Output
[error] 166 | import builder.{ elementProducer => element, int, string, boolean }
[error] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] | unused import
Expectation
No warning
He-PinHe-Pin
Metadata
Metadata
Assignees
Labels
area:lintingLinting warnings enabled with -W or -XlintLinting warnings enabled with -W or -Xlintitype:bug