Created
August 15, 2019 18:11
-
-
Save VladimirReshetnikov/849dd17e506ad101d86a474b0c3ab053 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
using System; | |
class Lorem { } | |
class Ipsum { } | |
namespace Dolor | |
{ | |
static class Sit | |
{ | |
public static void Amet(this Lorem x) { } | |
} | |
} | |
namespace Consectetaur | |
{ | |
static class Adipisicing | |
{ | |
public static void Amet(this Lorem x) { } | |
public static void Amet(this Ipsum x) { } | |
} | |
} | |
namespace Elit | |
{ | |
using Dolor; // Nothing from this namespace whatsoever is referenced below, | |
// but removing this directive introduces a compile-time error. | |
using Consectetaur; | |
static class Sed | |
{ | |
static void Eiusmod(Action<Lorem> x) { } | |
static void Eiusmod(Action<Ipsum> x) { } | |
static void Main() | |
{ | |
Eiusmod(x => x.Amet()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment