Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0112.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e1412d53764a0ee0e5dc1e19595517ad672b4585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// cs0112.cs: A static method can not be marked as virtual, abstract or override.
// Line: 13

namespace X
{
	public abstract class Foo
	{
		public abstract int Add (int a, int b);
	}

	public class Bar: Foo
	{
		virtual public static int Add (int a, int b)
		{
			int c;
			c = a + b;
			return c;
		}
		
		static int Main () 
		{
			return a;
		}
	}
}