You've already forked linux-packaging-mono
Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
24
mcs/errors/cs0070-2.cs
Normal file
24
mcs/errors/cs0070-2.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
// CS0070: The event `A.evt' can only appear on the left hand side of += or -= when used outside of the type `A'
|
||||
// Line: 22
|
||||
|
||||
using System;
|
||||
|
||||
public static class EventExtensions
|
||||
{
|
||||
public static void Raise (this EventHandler h)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class A
|
||||
{
|
||||
public event EventHandler evt;
|
||||
}
|
||||
|
||||
public class B : A
|
||||
{
|
||||
public void Run()
|
||||
{
|
||||
Action a = () => evt.Raise ();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user