using System.IO;
using System.Threading.Tasks;
namespace DisFixerTest.Async
{
class AsyncFileStream
{
public async Task<bool> Data()
{
var stream = await FileAsync.OpenReadAsync();
return false;
}
public class FileAsync
{
public static async Task<MemoryStream> OpenReadAsync()
{
var memStream = new MemoryStream();
return memStream;
}
}
}
}
This code snipped should yield an error: