Skip to content

Instantly share code, notes, and snippets.

@gseitz
Created July 25, 2011 13:50
Show Gist options
  • Save gseitz/1104166 to your computer and use it in GitHub Desktop.
Save gseitz/1104166 to your computer and use it in GitHub Desktop.
package protected trait escaping its visibility scope in specs2
import org.specs2.mutable.Specification
import org.specs2.matcher.MatchResult
// protected[specs2] trait MatchResult[T] ...
class DummySpec extends Specification {
// Is MatchResult escaping its visibility scope here?
// vvvvvvvvvvv
def intSpec: MatchResult[Int] = 1 must be equalTo 1
"Dummy" should {
"always succeed" in {
intSpec
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment