Reporter | Black Fox (Black.Fox) |
---|---|
Created | Jul 25, 2011 7:13:13 PM |
Updated | Dec 28, 2011 12:18:31 AM |
Resolved | Dec 27, 2011 5:09:11 PM |
Priority | Normal |
Type | Bug |
Fix versions | Next |
State | Fixed |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Code Analysis |
Affected versions | 6.0 |
Fixed in build | 6.5.1.1441 |
Look like RSRP-179524 but the source of the type parameter isn't the same and the value in this case is (literally) the same.
The quick fix from Alt+Enter suggest to Copy the default value (null) from base and doesn't do anything.
interface IBaz<T> { } interface IFoo { void Bar<T>(IBaz<T> baz = null); } abstract class FooBase : IFoo { public abstract void Bar<T>(IBaz<T> baz = null); } class Foo : FooBase { // null is marked with the warning : // Optional parameter default value differs from parameter baz in base method 'void Bar<T>(IBaz<T>)' public override void Bar<T>(IBaz<T> baz = null) { } }
The quick fix from Alt+Enter suggest to Copy the default value (null) from base and doesn't do anything.