a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
280 B
C#
25 lines
280 B
C#
// Compiler options: -langversion:default
|
|
|
|
//
|
|
// Anonymous method group conversions
|
|
//
|
|
|
|
class X {
|
|
delegate void T ();
|
|
static event T Click;
|
|
|
|
static void Method ()
|
|
{
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
T t;
|
|
|
|
// Method group assignment
|
|
t = Method;
|
|
|
|
Click += Method;
|
|
}
|
|
}
|