a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
365 B
C#
21 lines
365 B
C#
// CS0123: A method or delegate `MainClass.Delegate()' parameters do not match delegate `TestDelegate(bool)' parameters
|
|
// Line: 17
|
|
|
|
delegate IA TestDelegate(bool b);
|
|
|
|
interface IA {}
|
|
|
|
public class MainClass : IA
|
|
{
|
|
static MainClass Delegate()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public static void Main()
|
|
{
|
|
TestDelegate delegateInstance = new TestDelegate (Delegate);
|
|
}
|
|
}
|
|
|