[Experimental("FungusConsumer")] static void ExperimentalMethod() { Console.WriteLine("Eating a random mushroom I found in a field..."); } static void Test() { ExperimentalMethod(); // Compiler error here }