Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / test-var-06.cs
1
2 // Tests variable type inference with the var keyword when using the for-statement
3
4 using System;
5
6 public class Test
7 {
8         public static int Main ()
9         {
10                 for (var i = 0; i < 1; ++i)
11                         if (i.GetType() != typeof (int))
12                                 return 1;
13                 
14                 return 0;
15         }
16 }
17