Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Dmitry Lomov 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
Next build 
Fixed in build
264
  • Submitted by   Valentin Kipiatkov
    3 years ago (21 Sep 2006 18:43)
  • Updated by Valentin Kipiatkov
    3 years ago (24 Oct 2006 18:12)
  • Jira: RSRP-28903
    (history, comments)

RSRP-28903

[262] R# bug in method with generic parameters

0
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

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