Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
432 B
C#

// CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
// Line: 19
using System;
class ErrorCS0079 {
public delegate void Handler ();
event Handler privateEvent;
public event Handler OnFoo {
add {
privateEvent += value;
}
remove {
privateEvent -= value;
}
}
void Callback() {
if (privateEvent != null)
OnFoo();
}
public static void Main () {
}
}