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

RSRP-265030: DateTime and TimeSpan methods should be annotated with PureAttribute

$
0
0
Reporter Julien Lebosquain (mrjul) Julien Lebosquain (mrjul)
Created May 18, 2011 5:06:34 PM
Updated Feb 7, 2012 12:02:42 AM
Resolved Nov 29, 2011 12:35:34 AM
Priority Critical
Type Bug
Fix versions 6.1
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem Code Analysis - Control Flow
Affected versions 6.0 EAP
Fixed in build 6.0.2152.733
DateTime and TimeSpan methods such as Add() or ToUniversalTime() should be externally annotated with PureAttribute since they return new values. It would avoid false "Impure method is called for readonly field of value type".

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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