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

gtest-639.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afc0b2004a2e0fbcbdfc017b16f67a4de53a1a3e (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class A<T> where T : CB, IA
{
	void Foo (T t)
	{
		t.Prop = 3;
		long l = t.Prop2;
		t["1"] = "2";
	}
}

class A2<T, U> 
	where T : CB, U
	where U : IA
{
	void Foo (T t)
	{
		t.Prop = 3;
		long l = t.Prop2;
		t["1"] = "2";
	}
}

class CB : CA
{
}

class CA
{
	public int Prop { get; set; }

	public string this [byte b] { get { return ""; } }
}

interface IA
{
	string Prop { get; set; }
	long Prop2 { get; }

	string this [string b] { get; set; }
}

class X
{
	public static void Main ()
	{
	}
}