a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
21 lines
273 B
C#
21 lines
273 B
C#
// 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;
|
|
}
|
|
}
|