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

RSRP-294473: error CS4007: 'await' cannot be used in an expression containing the type 'System.TypedReference'

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 14, 2012 3:49:09 AM
Updated Apr 14, 2012 3:49:09 AM
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
using System;
using System.Threading.Tasks;

class C
{
    async static Task Foo()
    {
        Bar(new TypedReference(), await Task.Factory.StartNew(() => 1));
    }

    static void Bar(TypedReference x, int y) { }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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