adouble (checked ((sbyte) a), checked ((byte) a), checked ((short) a), checked ((ushort) a), checked ((int) a), checked ((uint) a), checked ((long) a),
checked ( (ulong) a), checked ((char) a), checked ((float) a), (decimal) a);
}
-
- static void Main ()
+
+ void TestDecimal (decimal d)
+ {
+ double dec = (double)d;
+ decimal dec2 = (decimal)dec;
+ }
+
+ public static void Main ()
{
}
}
+
+enum E:byte {
+ Min = 9
+}
+
+class Test2 {
+ void ExtraTst ()
+ {
+ E error = E.Min - 9;
+ string s = (string)null;
+ const decimal d = -10.1m;
+ const long l = (long)d;
+ char ch = (char)E.Min;
+ bool b = (DBNull) null == null;
+ }
+}
\ No newline at end of file