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

RSRP-468860: Convert Method To Property: warning that name already exists not shown when dialog opens.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Mar 26, 2018 1:06:43 PM
Updated Apr 9, 2018 3:41:43 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Fixed In Branch
Type Bug
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 EAP 4 D Build 12.0.20180322.125946-eap04d.

        private string _faculty;        
        public void SetFaculty(string value)
        {
            _faculty = value;
        }

        public string Faculty
        {
            get { return _faculty; }
        }
  1. Invoke Refactor This -> Convert Method To Property on SetFaculty
  2. Inspect "Convert Method To Property" dialog.

Actual result:
No warnings.

Expected result:
Warning "Type member with this name already exists" is shown.

NOTE:
After changing Name to "Faculty1" and then back to "Faculty" then the warning is shown.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



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