This project is read-only.
1

Resolved

Unexpected error CS0210: You must provide an initializer in a fixed or using statement declaration

description

using System;

struct S : IDisposable
{
    public void Dispose() { }

    static void Main()
    {
        using(S x) { }
    }
}
ACTUAL: error CS0210: You must provide an initializer in a fixed or using statement declaration
EXPECTED: No errors, because S x must be unambiguously parsed as a declaration expression