--- /dev/null
--- /dev/null
++// cs0029.cs: Cannot implicitly convert type `X' to `bool'
++// Line : 11
++
++class X {
++}
++
++class T {
++ static void Main ()
++ {
++ X x = new X ();
++ if (x){
++ }
++ }
++}
--- /dev/null
--- /dev/null
++// cs0030.cs : Cannot convert type `bool' to `float'
++// Line : 12
++
++public class Blah {
++
++ public static int Main ()
++ {
++ const bool k = false;
++ float f = (float) k;
++
++ }
++}
--// cs0030.cs : Cannot convert type 'Blah' to 'float'
++// cs0030.cs : Cannot convert type `Blah' to `float'
// Line : 12
public class Blah {
+++ /dev/null
--// cs0031.cs: Constant value `256' cannot be converted to a `byte'
--// Line : 7
--
--public class Blah {
--
-- public enum MyEnum : byte {
-- Foo = 256,
-- Bar
-- }
--
-- public static void Main ()
-- {
-- }
--}
--// cs0266.cs: Cannot implicitly convert type 'Helper*' to 'Obsolete*'. An explicit conversion exists (are you missing a cast?)
++// cs0266.cs: Cannot implicitly convert type `Helper*' to `Obsolete*'. An explicit conversion exists (are you missing a cast?)
// Line: 18
// Compiler options: -unsafe
--- /dev/null
--- /dev/null
++// cs0266.cs: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?)
++// Line: 7
++// Compiler options: -unsafe
++
++public unsafe struct C
++{
++ private fixed long test_1 [200000000000];
++}
++
--- /dev/null
--- /dev/null
++// cs0266-5.cs: Cannot implicitly convert type `long' to `int'. An explicit conversion exists (are you missing a cast?)
++// Line: 9
++
++class X
++{
++ public static void Main ()
++ {
++ int i = 3;
++ i += 999999999999999;
++ }
++}
++
--- /dev/null
--- /dev/null
++// cs0266.cs: Cannot implicitly convert type `long' to `uint'. An explicit conversion exists (are you missing a cast?)
++// Line: 7
++
++namespace MWFTestApplication {
++ class MainWindow {
++ public enum Testme : uint {
++ value = (1L << 1)
++ }
++ }
++}
--- /dev/null
--- /dev/null
++// cs0266-7.cs: Cannot implicitly convert type `int' to `byte'. An explicit conversion exists (are you missing a cast?)
++// Line : 7
++
++public class Blah {
++
++ public enum MyEnum : byte {
++ Foo = 256,
++ Bar
++ }
++
++ public static void Main ()
++ {
++ }
++}
cs0229.cs NO ERROR
cs0229-2.cs
--cs0266.cs
--cs0266-2.cs
cs0525.cs
cs0526.cs
cs0547.cs