* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git] / mcs / tests / gtest-anontype-05.cs
1 // Compiler options: -langversion:linq
2 // Tests anonymous type consolidation
3 using System;
4 using System.Collections;
5
6 public class Test
7 {
8         static int Main ()
9         {
10                 var v1 = new { Name = "Scott", Age = 21 };
11                 var v2 = new { Age = 20, Name = "Sam" };
12                 
13                 if (v1.GetType () != v2.GetType ())
14                         return 1;
15                 
16                 return 0;
17         }
18 }