1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// CS0135: `bar' conflicts with a declaration in a child block // Line: 13 public class Foo { public static class Nested { static int bar () { return 0; } public static void Bar () { var i = bar (); { bool bar = false; } } } }