Reporter | Hadi Hariri (hadihariri) |
---|---|
Created | Jan 28, 2012 10:31:00 AM |
Updated | Jan 28, 2012 10:31:22 AM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
I found a bug in R#
[1/26/12 11:21:58 AM] Krzysztof: I wrote a .ctor with parameter "Expression @default"
[1/26/12 11:22:25 AM] Krzysztof: and then did "introduce and initialize field @default" on it
[1/26/12 11:22:36 AM] Krzysztof: and the code that R# put in my .ctor
[1/26/12 11:22:45 AM] Krzysztof: @default = @default;
[1/26/12 11:22:50 AM] Krzysztof: should have been
[1/26/12 11:22:53 AM] Krzysztof: this.@default = @default;
[1/26/12 11:23:14 AM] Krzysztof: otherwise it just reassigns the argument to itself rather than initializing the field
[1/26/12 11:21:58 AM] Krzysztof: I wrote a .ctor with parameter "Expression @default"
[1/26/12 11:22:25 AM] Krzysztof: and then did "introduce and initialize field @default" on it
[1/26/12 11:22:36 AM] Krzysztof: and the code that R# put in my .ctor
[1/26/12 11:22:45 AM] Krzysztof: @default = @default;
[1/26/12 11:22:50 AM] Krzysztof: should have been
[1/26/12 11:22:53 AM] Krzysztof: this.@default = @default;
[1/26/12 11:23:14 AM] Krzysztof: otherwise it just reassigns the argument to itself rather than initializing the field