Impossible

sealed trait Impossible

Unfortunately using Nothing results in Scala 2 behaving differently and having lots of problems wrt implicit resolution and type inference.

This is an alternative.

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

@elidable
final def impossible: Nothing