﻿namespace StyleCop.Analyzers.Helpers
{
    using System.Threading.Tasks;

    internal static class SpecializedTasks
    {
        internal static Task CompletedTask { get; } = Task.FromResult(default(VoidResult));

        private sealed class VoidResult
        {
            private VoidResult()
            {
            }
        }
    }
}

﻿namespace StyleCop.Analyzers.Helpers
{
    using System.Threading.Tasks;

    internal static class SpecializedTasks
    {
        internal static Task CompletedTask { get; } = Task.FromResult(default(VoidResult));

        private struct VoidResult
        {
        }
    }
}

Simplify VoidResult to a value type
Simplify VoidResult to a value type
