errors/gcs0201.cs: Make sure that Linq syntax fails correctly when not
[mono.git] / mcs / errors / gcs0201.cs
1 // cs0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
2 // Line: 14
3 using System;
4
5 public class Test
6 {
7         private class A
8         {
9                 public string B;
10         }
11
12         static void Main ()
13         {
14                 A a = new A () { B = "foo" };
15         }
16 }