Skip to content

Conversation

cheeseng
Copy link
Contributor

def isInstanceOfA(b: Any) = b.isInstanceOf[(Int, String)]

changed to:-

def isInstanceOfA(b: Any) =
b match {
case (_: Int, _: String) => true
case _ => false
}

bvenners added a commit that referenced this pull request Apr 17, 2013
Improved isInstanceOf checks in tests for contain matchers.
@bvenners bvenners merged commit 256355e into scalatest:master Apr 17, 2013
bvenners pushed a commit that referenced this pull request Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants