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

Key: RSRP-28903
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Dmitry Lomov
Reporter: Valentin Kipiatkov
Votes: 0
Watchers: 0
Operations

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

[262] R# bug in method with generic parameters

Created: 21 Sep 06 18:43   Updated: 24 Oct 06 18:12
Component/s: None
Fix Version/s: 2.0.2

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

Fixed in build: 264


 Description  « Hide
Hi,

R# doesn't recognize generic method parameters as being of type 'object'

public void GenericMethod<T>(List<T> list)
{
foreach (T t in list)

{ Console.WriteLine(t.ToString()); }

}

I think this has been reported before but still not solved in build 262.

adding this "where T : class" doesn't help, but "where T : struct" does
work.

Best regards,

Wiebe Tijsma



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