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

RSRP-291162: Don't warn on Code Contract statements

$
0
0
Reporter Terje Sandstrom (Terje) Terje Sandstrom (Terje)
Created Mar 22, 2012 9:41:51 PM
Updated Mar 22, 2012 9:43:46 PM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions 7.0 Preview, 6.1.1
Fixed in build No Fixed in build
R# gives a warning on lines with Code Contract statements. These warnings are nor correct, and R# should not give them.
The warning says that the method is skipped because it is conditional or partial, and it gives it an "orange" stick. R# should recognize the code contract statements and treat them correctly, even if code contracts are not supported per se, they should not give out warnings.
Reproduction: Write any method like this:
public void DoX(Class1 info)
{
Contract.Requires(info != null);
}
Then R# warns on the contract line.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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