[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / gtest-anontype-01.cs
blob93fd29bf8aaec785cadd10d949354f4dc2fc3185
2 // Tests anonymous types
3 using System;
4 using System.Collections;
6 public class Test
8 public static int Main ()
10 var v = new { Foo = "Bar", Baz = 42 };
12 if (v.Foo != "Bar")
13 return 1;
14 if (v.Baz != 42)
15 return 2;
17 return 0;