* ResolvedReference.cs (.ctor): Set 'OriginalItemSpec' and 'ResolvedFrom',
[mcs.git] / tests / test-var-01.cs
blob576daff6d8b9218b78a1794fc85fbf40efd76a43
2 // Tests variable type inference with the var keyword when assigning to build-in types
3 using System;
5 public class Test
7 static int Main ()
9 var i = 5;
10 var b = true;
11 var s = "foobar";
13 if (!b)
14 return 1;
15 if (i > 5)
16 return 2;
17 if (s != "foobar")
18 return 3;
20 return 0;