summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0079-3.cs
blob: fcfd2ca002ef8a92c543dae4eb9618181647de12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS0079: The event `Foo.BaseFoo.Changed' can only appear on the left hand side of `+=' or `-=' operator
// Line: 16

using System;

namespace Foo
{
	public delegate void VoidHandler ();

	public abstract class BaseFoo
	{
		public abstract event VoidHandler Changed;

		public string Name {
			set {
				Changed ();
			}
		}
	}
}