[262] R# bug in method with generic parameters

Hi,

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

public void GenericMethod(List]]> 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

1 comment
Comment actions Permalink

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-28903.

Best regards,
- Development Team.


0

Please sign in to leave a comment.