Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Apr 14, 2012 6:18:05 AM |
Updated | Apr 14, 2012 6:18:05 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.Runtime.CompilerServices; interface I : INotifyCompletion { bool IsCompleted { get; } unsafe int* GetResult(); void OnCompleted(Action continuation); } class C { I GetAwaiter() { return null; } async void Foo() { await this; // error CS0214: Pointers and fixed size buffers may only be used in an unsafe context } }