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

RSRP-293620: "Remove ToList()" creates broken code

$
0
0
Reporter Alexander Abramov (aa) Alexander Abramov (aa)
Created Apr 10, 2012 4:37:00 PM
Updated Apr 11, 2012 1:14:18 AM
Priority Critical
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Alexey Kuptsov (alexey.kuptsov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
Given this code
var a = Enumerable.Empty<bool>().ToList().Count(s => s);


Applying "Remove ToList()" fix creates this code
var a = Enumerable.Empty<bool>().Count()(s => s);


Expected result
var a = Enumerable.Empty<bool>().Count(s => s);


Resharper 6.1 full build 6.1.1000.82

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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