Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1593-2.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbeaf68aaf1075444ee7f20e85652b70bfa980b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs1593: Using different kind of signatures for delegate invocation.
// Line: 11
//
// The delegate has an explicit signature with 0 arguments, so it 
// can not be assigned to a delegate with one argument.
//
delegate void D (int x);

class X {
	static void Main ()
	{
		D d2 = delegate () {};
	}
}