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

test-526.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 32d8300a07ec57450bb8b00cbfa123310324762c (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;

interface IList 
{
	int Count ();
}

interface ICounter 
{
	int Count { set; }
}

interface IListCounter: IList, ICounter
{
}

interface IA
{
	int Value ();
}

interface IB : IA
{
	new int Value { get; }
}

interface IC : IB
{
	new int Value { get; }
}

interface IBB : IList, ICounter
{
}

interface ICC : IBB
{
}

interface IM1
{
    void Add (int arg);
}

interface IM2 : IM1
{
    int Add (int arg, bool now);
}

class Test
{
	public static void Main ()
	{
	}
	
	static void Foo (IListCounter t)
	{
		t.Count ();
	}
	
	void Foo2 (IC b)
	{
		int i = b.Value;
	}
	
	void Foo3 (ICC c)
	{
		c.Count ();
	}
    
	void Foo4 (IM2 im2)
	{
		im2.Add (2);
	}

}