2 // Tests anonymous types initialized with local variables
4 using System
.Collections
;
8 static object TestA (string s
)
13 public static int Main ()
17 var v
= new { Foo, Baz }
;
24 if (!TestA ("foo").Equals (new { s = "foo" }
))
27 Console
.WriteLine ("OK");