Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-468993: Encapsulate Field: New property is not created when property which encapsulated field already exists.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Mar 30, 2018 2:11:25 PM
Updated Apr 20, 2018 1:28:22 PM
Resolved Apr 9, 2018 5:03:42 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Critical
State Verified
Type Bug
Fix version 2018.1
Affected versions 2018.1
Fixed In Version ReSharper 2018.1 EAP 8
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 6 D Build 12.0.20180330.53424-eap06d

        private string myString;

        protected string MyString
        {
            get { return myString; }
            set { myString = value; }
        }

        public void DoSomething(string input)
        {
            myString = input;
            var test = myString;
        }
  1. Invoke Encapsulate Field on myString field.
  2. In "Encapsulate Field" dialog set "Create new property" as "Choose property:"; "My" as "Property name:"; uncheck "To auto-property".
  3. Click Next

Actual result:
New property is not created.

Expected result:
New property is created.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>