remove code redundancies changes semantics/breaks code
Not sure whether this has been asked before.
The "remove code redundancies" breaks working code.
Example:
Empty type constructor (cctor) with attributes applied:
[SecurityCritical]
static DiagnosticTrace() { }
The remove code redundancies marks this code as redundant and removes it. The result is a run-time exception, because the compiler generates the cctor (without the attribute).
C#, VS 2010 RC
JetBrains ReSharper 5 Full Edition Pre-Release
Build 5.0.1618.49 on 2010-02-17T17:49:36
Please sign in to leave a comment.