Skip to content

Instantly share code, notes, and snippets.

@milessabin
Created July 29, 2014 21:42
Show Gist options
  • Save milessabin/2792ad2810ee9700399f to your computer and use it in GitHub Desktop.
Save milessabin/2792ad2810ee9700399f to your computer and use it in GitHub Desktop.
Any =:= WildcardType =:= Nothing
miles@frege:~$ scala
Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_55).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :power
** Power User mode enabled - BEEP WHIR GYVE **
** :phase has been set to 'typer'. **
** scala.tools.nsc._ has been imported **
** global._, definitions._ also imported **
** Try :help, :vals, power.<tab> **
scala> typeOf[Any] =:= WildcardType
res0: Boolean = true
scala> WildcardType =:= typeOf[Nothing]
res1: Boolean = true
scala>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment