Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

23 lines
308 B
C#

// Tests variable type inference with the var keyword when assigning to build-in types
using System;
public class Test
{
public static int Main ()
{
var i = 5;
var b = true;
var s = "foobar";
if (!b)
return 1;
if (i > 5)
return 2;
if (s != "foobar")
return 3;
return 0;
}
}