Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Dmitry Lomov 
Subsystem
PSI - Resolve 
Affected versions
Fixed in
Fixed in build
Next build 
Build
455
Fixed in build
903
  • Submitted by   Vladimir Reshetnikov
    2 years ago (09 Jun 2007 18:53)
  • Updated by Vladimir Reshetnikov
    19 months ago (30 Jun 2008 20:58)
  • Jira: RSRP-42788
    (history, comments)

RSRP-42788

error CS0411: The type arguments for method 'C.Foo<T>(IA<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

0
interface IA<T> {}

interface IB : IA<int>{}

class C : IB, IA<long>
{
    static void Main()
    {
        C c = new C();
        Foo(c); // error CS0411: The type arguments for method 'C.Foo<T>(IA<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
    }

    static void Foo<T>(IA<T> x) {}
}


Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments