History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-42788
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Dmitry Lomov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

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

Created: 09 Jun 07 18:53   Updated: 19 Jun 07 19:14
Component/s: PSI - Resolve
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 455


 Description  « Hide
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) {}
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.