Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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;
}
}