2 // Tests the varios type conversions.
8 static int test_explicit ()
15 object x_ulong_1
= 1ul;
16 object x_ulong_2
= 1UL;
17 object x_ulong_3
= 1lu;
18 object x_ulong_4
= 1Lu;
19 object x_ulong_5
= 1LU;
24 if (!(x_uint_1
is uint))
27 if (!(x_uint_2
is uint))
30 if (!(x_long_1
is long))
33 if (!(x_long_2
is long))
36 if (!(x_ulong_1
is ulong))
39 if (!(x_ulong_2
is ulong))
42 if (!(x_ulong_3
is ulong))
45 if (!(x_ulong_4
is ulong))
48 if (!(x_ulong_5
is ulong))
55 static int test_implicit ()
58 object i_uint
= 0x80000000;
59 object i_long
= 0x100000000;
60 object i_ulong
= 0x8000000000000000;
64 if (!(i_uint
is uint))
66 if (!(i_long
is long))
68 if (!(i_ulong
is ulong))
87 // Just a compilation fix: 21418
94 // This was a compilation bug, error: 57522
97 Console
.WriteLine ("Tests pass");