summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0135-5.cs
blob: 8e75a882e9f7e0ab1d74f548167f2c0aa9ca2616 (plain)
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;
			}
		} 
	}
}