Skip to content

Instantly share code, notes, and snippets.

@ghik
Last active September 7, 2015 19:45
Show Gist options
  • Select an option

  • Save ghik/c1393c51232b9c43a285 to your computer and use it in GitHub Desktop.

Select an option

Save ghik/c1393c51232b9c43a285 to your computer and use it in GitHub Desktop.
Nothing to see here
scala> type AbsolutelyNothing = Nothing { type MoreNothing = Nothing }
defined type alias AbsolutelyNothing
scala> typeOf[Nothing] <:< typeOf[AbsolutelyNothing]
res0: Boolean = true
scala> typeOf[AbsolutelyNothing] <:< typeOf[Nothing]
res1: Boolean = true
scala> typeOf[Nothing] =:= typeOf[AbsolutelyNothing]
res2: Boolean = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment