blob: 7415345051b168613a24bfb54015918a22da2495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// CS0229: Ambiguity between `Program.I1.Id' and `Program.I2.Id'
// Line: 18
static class Program
{
public interface I1
{
string Id { get; }
}
public interface I2
{
int Id { get; }
}
static void Generic<T> (T item) where T : I1, I2
{
var a = item.Id;
}
}
|