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

Key: RSRP-31332
Type: Cosmetics Cosmetics
Status: Open Open
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

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

Method and Type type parameters have different hierarchy

Created: 07 Nov 06 17:00   Updated: 20 Jun 07 11:00
Component/s: Code View - Type hierarchy
Fix Version/s: 4.0
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. S.GIF
(15 kb)

2. T.gif
(15 kb)

Build: 300


 Description  « Hide
using System;

class Stuff<T> where T : ICloneable
{
    static void Foo<S>() where S : ICloneable {}
}

I look at inheritance hierarchy of type parameters 'T' and 'S', which have the same constraints, but I get different hierarchies.
Namely, T inherits Object and IClconeable, but S - only ICloneable (see attachments).
Why the difference?



 All   Comments   Work Log   Change History      Sort Order:
Ilya Ryzhenkov - 08 Nov 06 12:19
Please, use more descriptive subject text "Why the difference" is hard to find later for reference.