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

RSRP-469354: Initialize property from constructor: property not initialized if constructor calls another one with different parameter name.

$
0
0
Reporter Lilia Shamsutdinova (Lilia.Shamsutdinova) Lilia Shamsutdinova (Lilia.Shamsutdinova)
Created Apr 20, 2018 3:21:38 PM
Updated Apr 20, 2018 3:21:38 PM
Subsystem Quick Fixes
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions

JetBrains ReSharper Ultimate 2018.1 12.0.20180420.35542-eap10d.

        public string Name { get; set; }
        public string CoolName { get; set; }
        public string LastName { get; set; }

        public Class1(string cool_name, string last_name)
        {
        }

        public Class1(string name) : this(name, "")
        {
        }
  1. Invoke "Initialize property from constructor" QF on Name.

Actual result:
Nothing happens.

Expected result:
Name is initialized.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



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