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

RSRP-273481: Null-coalescing operator for lambda expression bug

$
0
0
Reporter Sergey Dramarecky (sdramare) Sergey Dramarecky (sdramare)
Created Jun 30, 2011 2:06:35 AM
Updated Feb 3, 2012 6:21:12 PM
Priority Critical
Type Bug
Fix versions Mirabile Futurum
State Open
Assignee Olga Lobacheva (olka)
Subsystem Code Analysis
Affected versions No Affected versions
Fixed in build No Fixed in build
If we have the following code:

Func<T, bool> predicate = null;

predicate = predicate ?? (() => true);


Resharper analysis show what all ok, but actualy this code can't be compiled with error: Operator '??' cannot be applied to operands of type 'System.Func<T,bool>' and 'lambda expression'

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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