Skip to content

Instantly share code, notes, and snippets.

@nguerrera
Last active August 29, 2015 14:05
Show Gist options
  • Save nguerrera/2e185b27652d54ee7304 to your computer and use it in GitHub Desktop.
Save nguerrera/2e185b27652d54ee7304 to your computer and use it in GitHub Desktop.
This is valid and prints False then 42. (Hint: Unicode)
using System;
static class Program
{
static bool A()
{
return false;
}
static int А()
{
return 42;
}
static void Main()
{
Console.WriteLine(A());
Console.WriteLine(А());
}
}
@nguerrera
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment