We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
It should be rewritten as isInstanceOf[X] && isInstanceOf[Y] of course. Test case that should run without asserting:
isInstanceOf[X] && isInstanceOf[Y]
trait X trait Y object Test { def main(args: Array[String]): Unit = { val x: Any = new X {} assert(!x.isInstanceOf[X & Y]) } }