repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
for "build" config, import corlib common sources at unix instead (#11989)
[mono-project.git]
/
mcs
/
errors
/
cs0229-5.cs
blob
7415345051b168613a24bfb54015918a22da2495
1
// CS0229: Ambiguity between `Program.I1.Id' and `Program.I2.Id'
2
// Line: 18
3
4
static class
Program
5
{
6
public interface
I1
7
{
8
string
Id { get; }
9
}
10
11
public interface
I2
12
{
13
int
Id { get; }
14
}
15
16
static void
Generic
<
T
> (
T item
)
where T
:
I1
,
I2
17
{
18
var
a
=
item
.
Id
;
19
}
20
}