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

Key: RSRP-59736
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 0
Operations

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

Encapsulate Field should not change usages of a field inside a constructor when enclosing type is a struct

Created: 28 Feb 08 19:07   Updated: 28 Feb 08 19:09
Component/s: Refactorings - Encapsulate Field
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

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


 Description  « Hide
Bug when using Encapsulate Feild on a struct.

if you've got:

struct foo {
object _feild;
public foo (object test){ _feild = test; }
}

when you encapsulate feild, it will convert the useage of _feild in the constructor. This is fine, BUT because its a stuck, it will generate a compiler error, as you're trying to use a property before all members have been assigned.



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