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

RSRP-296605: False NRE warning (Arguments to a method are evaluated before the method has a chance to invoke any lambda passed to it)

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 21, 2012 2:25:33 AM
Updated Apr 21, 2012 11:41:35 AM
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
using System;

class Program
{
    static void Main()
    {
        object obj = null;
        Foo(() => obj.ToString(), obj = "");
    }

    static void Foo(Func<string> x, object y)
    {
        Console.WriteLine(x());
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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