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

test-847.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2f22c4224997b0ca6adbe1d1275f25f9bcc14363 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;

interface IA
{
	int this[int arg] { get; set; }
}

interface I : IA
{
}

class C
{
	public static int Main ()
	{
		var attrs = typeof (I).GetCustomAttributes (false);

		// No DefaultMemberAttribute needed
		if (attrs.Length != 0)
			return 1;

		return 0;
	}
}