Created
September 14, 2012 09:54
-
-
Save dgrunwald/3721097 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
bool b = false; | |
short s = 0; | |
var res = b ? 1L : s; | |
Console.WriteLine(res.GetType()); // prints Int64 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment