.NET Fiddle

CSharp · Console

/Program.cs

using System;


public struct Foo
{
	public int I { get;set; }
}

public class Program
{
	public static void Main(string[] args)
	{
		// This is not an error.
		var foo = new Foo();
		
		Console.WriteLine(foo.I);
	}
}
;