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

RSRP-288434: 'Expression is always true' is not detected for 'is' on variable of type 'dynamic'

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Feb 21, 2012 6:53:13 AM
Updated Mar 26, 2012 8:27:40 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
class C
{
    static void Foo(dynamic x)
    {
        if(x is string)
        {
            var y = x.ToLower();
            if(y is string) // 'Expression is always true' is not detected
            {
                
            }
        }
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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