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

RSRP-232340: 'Generate constructor' quickfix doesn't copy parameter default values

$
0
0
Reporter Alexander Shvedov (shvedov) Alexander Shvedov (shvedov)
Created Mar 19, 2011 2:10:33 AM
Updated Jan 27, 2012 8:57:35 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Alexander Shvedov (shvedov)
Subsystem Generate Action
Affected versions No Affected versions
Fixed in build No Fixed in build
Code:
    class Foo
    {
        public Foo(string name, int age = 0) { }
    }

    class Bar : Foo
    {
        
    }

After executing 'Generate constructor' quickfix on 'Bar' class:
    class Foo
    {
        public Foo(string name, int age = 0) { }
    }

    class Bar : Foo
    {
        public Bar(string name, int age)
            : base(name, age) {}
    }

Viewing all articles
Browse latest Browse all 106942

Trending Articles