1 2 3 4 5 6 7 8 9 10 11 12
// CS0677: `X.a': A volatile field cannot be of the type `A' // Line: 8 using System; struct A { int a; } class X { public volatile A a; static void Main () { } }