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

Key: RSRP-54199
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Sergey Shkredov
Reporter: Albert Weinert
Votes: 1
Watchers: 2
Operations

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

Extract Interface suggest Object instead of the Interface for replacing the usings.

Created: 09 Dec 07 02:41   Updated: 13 Dec 07 19:52
Component/s: None
Fix Version/s: 3.1
Security Level: Everybody (All jira users)

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

1. ReSharperExtractInterfaceBug.jpg
(179 kb)

Build: 574
Fixed in build: 578


 Description  « Hide
If i extract an interface of an class then R# suggest me to replace the usages of the variables with Object insteead if the interface.

It seems that R# does a Extract Superclass instead of interface.

See Picture.



 All   Comments   Work Log   Change History      Sort Order:
Albert Weinert - 09 Dec 07 02:42
Tested with Visual Studio 2008

Albert Weinert - 12 Dec 07 17:38
Not fixed in 577

Albert Weinert - 12 Dec 07 17:53
In 577 also suggest Object zu replace the usages.
But if you say yes, then 0 usages are replaced (so there is no broken code).

Sergey Shkredov - 12 Dec 07 18:07
You're right. Actually bug is that wrong base type is suggested for the following 'Use Base Type' refactoring. Newly created base interface should be suggested and it is fixed in 578.

Albert Weinert - 13 Dec 07 19:52
Fine. Now it works.