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

Key: RSRP-28861
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Olga Lobacheva
Votes: 0
Watchers: 0
Operations

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

Incorrect message in problem with type inference

Created: 20 Sep 06 20:50   Updated: 20 Jun 07 11:00
Component/s: PSI - Resolve
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

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


 Description  « Hide
public class C
{
public T F<T, U>(U x, int y) { return default(T); }

public void Test()

{ string x = F(1, 2); // (1) }

}

(1) Strange error message is shown here. It says that 'argument type 'int' is not assignable to parameter type U'. But problem is that type parameter T can't be infered.



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