Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 14, 2014 23:19
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirReshetnikov/8427915 to your computer and use it in GitHub Desktop.
Save VladimirReshetnikov/8427915 to your computer and use it in GitHub Desktop.
using System;
using N; // This using directive is unused, but cannot be simply removed
static class C
{
static void Ex(this string x) { }
static void Foo(Action<string> x, int y) { }
static void Foo(Action<string> x, string y) { }
static void Foo(Action<string> x, object y) { }
static void Foo(Action<int> x, int y) { }
static void Main()
{
Foo(y => Foo(x => x.Ex(), y), 0);
}
}
namespace N
{
static class E
{
public static void Ex(this int x) { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment