Skip to content

Instantly share code, notes, and snippets.

@evanricard
Last active February 11, 2020 22:48
Show Gist options
  • Save evanricard/dabf3840d13326857da2b3113bd550bd to your computer and use it in GitHub Desktop.
Save evanricard/dabf3840d13326857da2b3113bd550bd to your computer and use it in GitHub Desktop.
NamedGenericNonInvoke #weird
void M(int x, int y) { }
void M<T>(T y, int x) { }
void M2()
{
M(3, 4);
M(y: 3, x: 4); // Invokes M(int, int)
M(y: 3, 4); // Invokes M<T>(T, int)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment