e46a49ecf1
Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
17 lines
206 B
C#
17 lines
206 B
C#
// CS8189: By reference return delegate does not match `C.D()' return type
|
|
// Line: 15
|
|
|
|
class C
|
|
{
|
|
delegate ref int D ();
|
|
|
|
static int M ()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static void Main ()
|
|
{
|
|
D d = new D (M);
|
|
}
|
|
} |