forked from IronLanguages/ironpython3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExplicit.cs
More file actions
133 lines (106 loc) · 3.09 KB
/
Explicit.cs
File metadata and controls
133 lines (106 loc) · 3.09 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/* ****************************************************************************
*
* Copyright (c) Microsoft Corporation.
*
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A
* copy of the license can be found in the License.html file at the root of this distribution. If
* you cannot locate the Apache License, Version 2.0, please send an email to
* ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
*
*
* ***************************************************************************/
namespace IronPythonTest {
public interface IExplicitTest1 {
string A();
string B();
string C();
string D();
}
public interface IExplicitTest2 {
string A();
string B();
}
public interface IExplicitTest3 {
int M();
}
public interface IExplicitTest4 {
int M(int i);
}
public interface IExplicitTest5 {
string A();
}
public interface IExplicitTest6 {
string B();
}
public interface IExplicitTest7 {
string A();
}
public class ExplicitTest : IExplicitTest1, IExplicitTest2 {
#region IExplicitTest1 Members
string IExplicitTest1.A() {
return "ExplicitTest.IExplicitTest1.A";
}
string IExplicitTest1.B() {
return "ExplicitTest.IExplicitTest1.B";
}
string IExplicitTest1.C() {
return "ExplicitTest.IExplicitTest1.C";
}
public string D() {
return "ExplicitTest.D";
}
#endregion
#region IExplicitTest2 Members
string IExplicitTest2.A() {
return "ExplicitTest.IExplicitTest2.A";
}
public string B() {
return "ExplicitTest.B";
}
#endregion
}
public class ExplicitTestArg : IExplicitTest3, IExplicitTest4 {
#region IExplicitTest3 Members
int IExplicitTest3.M() {
return 3;
}
#endregion
#region IExplicitTest4 Members
int IExplicitTest4.M(int i) {
return 4;
}
#endregion
}
public class ExplicitTestNoConflict : IExplicitTest5, IExplicitTest6 {
#region IExplicitTest5 Members
string IExplicitTest5.A() {
return "A";
}
#endregion
#region IExplicitTest6 Members
string IExplicitTest6.B() {
return "B";
}
#endregion
}
public class ExplicitTestOneConflict : IExplicitTest5, IExplicitTest6, IExplicitTest7 {
#region IExplicitTest5 Members
string IExplicitTest5.A() {
return "A";
}
#endregion
#region IExplicitTest6 Members
string IExplicitTest6.B() {
return "B";
}
#endregion
#region IExplicitTest7 Members
string IExplicitTest7.A() {
return "A7";
}
#endregion
}
}