X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0150-2.cs;h=7e20f3f572edc1034dab86c7d482e87b98817ca2;hb=4e441ecc2a8b9e66459e1df19ea5804e1fea668e;hp=a114adb8dbab6fbbbab6c0ba80080e95265da673;hpb=496dfbf9ec0fd3143e5dd560a863d916e56a52b8;p=mono.git diff --git a/mcs/errors/cs0150-2.cs b/mcs/errors/cs0150-2.cs index a114adb8dba..7e20f3f572e 100644 --- a/mcs/errors/cs0150-2.cs +++ b/mcs/errors/cs0150-2.cs @@ -1,8 +1,18 @@ -// cs0150-2.cs: A constant value is expected -// Line : 6 +// CS0150: A constant value is expected +// Line : 14 -class C +using System; + +public class Blah { - int [,] i = new int [2,null] { { 1 }, { 2 } }; + static readonly string Test; + + public static void Main () + { + string s = null; + switch (s) { + case Blah.Test: + break; + } + } } - \ No newline at end of file