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

RSRP-288633: R# does not warn about incorrect type cast

$
0
0
Reporter Egor Malyshev (megor) Egor Malyshev (megor)
Created Feb 29, 2012 2:26:14 PM
Updated Feb 29, 2012 2:26:14 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
I have this code:
        Dim cache As New List(Of ListViewItem)
        cache.AddRange(editorsOrder.Items)

R# does not produce any warnings, but at run time I get exception saying that ListViewItemCollection can't be cast to IEnumerable of T.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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