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

RSRP-294490: False error: Type 'C' is not awaitable

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 14, 2012 6:14:21 AM
Updated Apr 14, 2012 6:14:21 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.Runtime.CompilerServices;

interface I : INotifyCompletion
{
    bool IsCompleted { get; }
    void GetResult();
}

class C
{
    I GetAwaiter()
    {
        return null;
    }

    async void Foo()
    {
        await this;
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles