﻿using System;
using System.Threading.Tasks;

namespace ReCommendedExtension.Tests.test.data.Analyzers.AwaitQuickFixes
{
    public class AwaitForAnonymousMethodFields
    {
        Func<Task<int>> AnonymousMethodField2_WithConfigureAwait = async delegate
        {
            if (Environment.UserInteractive)
            {
                Console.WriteLine();
            }

            return await{caret} Task.FromResult(LocalFunction()).ConfigureAwait(false);

            int LocalFunction() => 3;
        };
    }
}