Created
July 29, 2014 21:42
-
-
Save milessabin/2792ad2810ee9700399f to your computer and use it in GitHub Desktop.
Any =:= WildcardType =:= Nothing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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