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

Key: RSRP-27092
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Eugene Pasynkov
Reporter: Paul Laudeman
Votes: 0
Watchers: 0
Operations

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

Introduce field does not work correctly with nullable properties

Created: 06 Aug 06 19:16   Updated: 18 Dec 06 16:38
Component/s: Refactorings
Fix Version/s: 2.5.1
Security Level: Everybody (All jira users)

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

Build: 254
Fixed in build: 327
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=27092


 Description  « Hide
If I have the following nullable property with no field defined:

public DateTime? Created
{
get { return created; }
set { created = value; }
}

ReSharper will helpfully ask me if I'd like to introduce a field for "created". When ReSharper creates the field, it does not insert the "?" after the type name:

private DateTime created;

The expected behavior should be:

private DateTime? created;



 All   Comments   Work Log   Change History      Sort Order:
Andrey Simanovsky - 08 Dec 06 16:41
Live Templates seem to fail to present nullable types.

Ilya Ryzhenkov - 14 Dec 06 18:17
UsingInsertionHelper.BindToType works incorrectly with nullable types