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

RSRP-469330: Generate deconstructor option is disabled for child class when properties and fields are located in parent.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 19, 2018 2:02:13 PM
Updated Apr 19, 2018 2:02:13 PM
Subsystem Generate
Assignee Andrew Karpov (andrew.karpov)
Priority Major
State Submitted
Type Bug
Fix version 2018.2
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion VS 2017 RTM

JetBrains ReSharper Ultimate 2018.1 12.0.20180418.213521-eap10d.

PersonBase

    public class PersonBase
    {
        public string Name;
        public int Phone;
        public string BirthDate;
        public string LName { get; set; }
        public string MiddleName;
        public string LastMiddleName;
    }

Person

    public class Person: PersonBase
    {
        public Person(string name1, int phone, string birthDate)
        {
            Name = name1;
            Phone = phone;
            BirthDate = birthDate;
        }
    }
  1. Invoke Generate Code.
  2. Inspect dropdown.

Actual result:
Deconstructor option is disabled.

Expected result:
Deconstructor option is enabled.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



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