Skip to content

non-private method referring to private type is overeager #2678

@rkuhn

Description

@rkuhn
[error] non-private method doCollected refers to private trait Collected
[error]  in its type signature [org$scalatest$Matchers$doCollected$$T]
[error]   (collected: Matchers.this.Collected, xs: scala.collection.GenTraversable[T], 
[error]     original
[error]   : Any, prettifier: org.scalactic.Prettifier, pos: 
[error]     org.scalactic.source.Position
[error]   )(fun: T => org.scalatest.Assertion)org.scalatest.Assertion
[error] one error found

Looking at the Scalatest source, doCollected is private[scalatest], which means that compiling my own project against this code should not result in an error—I can see why it should be an error when building scalatest itself, though.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions