X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0037-7.cs;h=b9ee407d650adcf93cb1d7e51fea4f3abbcb0deb;hb=5ad92e6b10d5c19dd9974ecd762ab97fb811b29a;hp=49a1f61ed5ebcf3140531e11a6264591ba30ec52;hpb=1fabd87b02f8d2e359150ed7a9e92613e60383bc;p=mono.git diff --git a/mcs/errors/cs0037-7.cs b/mcs/errors/cs0037-7.cs index 49a1f61ed5e..b9ee407d650 100644 --- a/mcs/errors/cs0037-7.cs +++ b/mcs/errors/cs0037-7.cs @@ -1,10 +1,15 @@ -// CS0037: Cannot convert null to `bool' because it is a value type -// Line: 8 +// CS0037: Cannot convert null to `char' because it is a value type +// Line: 12 -class X -{ - static void Main (string[] args) - { - bool b = args.Length > 0 ? null : null; - } -} +class C +{ + static void Test () + { + char c = 'c'; + switch (c) + { + case 'a': + goto case null; + } + } +}