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

RSRP-288408: Strange error message ('{bool, object}' is not a reference type as required by the lock statement.)

$
0
0
Reporter artem (artems) artem (artems)
Created Feb 20, 2012 3:54:18 AM
Updated Feb 20, 2012 3:54:18 AM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
class T
{
static void M(Action<bool> o)
{

}

static void M(Action<object> o)
{
}

static void Main(string[] args)
{
M(a => {lock (a) { } });
}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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