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

20 lines
306 B
C#

// CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type
// Line: 17
using System;
class X
{
public delegate object Function(int arg1);
static void Main ()
{
Delegate d = new Function (f);
}
static int f (int a)
{
return 1;
}
}