Last active
August 29, 2015 14:05
-
-
Save nguerrera/2e185b27652d54ee7304 to your computer and use it in GitHub Desktop.
This is valid and prints False then 42. (Hint: Unicode)
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
using System; | |
static class Program | |
{ | |
static bool A() | |
{ | |
return false; | |
} | |
static int А() | |
{ | |
return 42; | |
} | |
static void Main() | |
{ | |
Console.WriteLine(A()); | |
Console.WriteLine(А()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was a follow-up to this tweet where I joked about programming in French to "overload" by return type:
https://twitter.com/nguerrera/status/429481674758316032