I noticed that in the following circumstances, the scala type "Int" can be used, but Any or Nothing, cannot.
user match { case Int => "scala int" case Any => "?" } How and why does scala's case class differentiate between these types as being matchable?
case Int =>you're probably not getting what you expect. It'll only match theIntcompanion object, which provides e.g.Int.MaxValue, etc.