
|
If you were logged in you would be able to see more operations.
|
|
|
|
Original Estimate:
|
Unknown
|
Remaining Estimate:
|
Unknown
|
Time Spent:
|
Unknown
|
|
interface I1
{
}
interface I2
{
}
interface I<T>
{
}
class A
{
public static void Register<T>(I<T> obj)
{
}
}
class B : I<I1>, I<I2>
{
public void Main()
{
// Compiler gives error here because of ambiguity but Resharper doesn't.
A.Register(this);
// This compiles OK, but Resharper highlights <I1> as redundant
A.Register<I1>(this);
}
}
|
|
Description
|
interface I1
{
}
interface I2
{
}
interface I<T>
{
}
class A
{
public static void Register<T>(I<T> obj)
{
}
}
class B : I<I1>, I<I2>
{
public void Main()
{
// Compiler gives error here because of ambiguity but Resharper doesn't.
A.Register(this);
// This compiles OK, but Resharper highlights <I1> as redundant
A.Register<I1>(this);
}
} |
Show » |
| There are no comments yet on this issue.
|
|