[Mono-devel-list] System.Drawing.Drawing2D.HatchStyle little bug?
Ravindra
rkumar at novell.com
Thu Feb 12 07:26:24 EST 2004
Radek,
It is already fixed in CVS. Please update your code.
However, thanks for reporting this.
-Ravindra
On Wed, 2004-02-11 at 15:46, psonek at email.cz wrote:
> Hi,
> I think I got tiny bug in HatchStyle.cs. This happens:
>
> radek at linux:> mcs switch-test.cs /r:System.Drawing.dll
> error CS0152: The label `case + 21:' is already present on this switch
> statement
> Compilation failed: 1 error(s), 0 warnings
>
> --- Code is here:
>
> using System.Drawing.Drawing2D;
> class Foo {
> static void Main () {
> HatchStyle style = HatchStyle.DarkUpwardDiagonal;
> switch (style) {
> case HatchStyle.DarkUpwardDiagonal:
> Console.WriteLine("DarkUpward");
> break;
> case HatchStyle.WideUpwardDiagonal:
> Console.WriteLine("WideUpward");
> break;
> }
> }
> }
>
> It's because WideUpwardDiagonal=21 is defined in HatchStyle.cs while it
> should be WideUpwardDiagonal=23.
>
> I also want to ask, if it is ok that compiler didnt tell the file in which
> error occured and also no line number is mentioned.
>
> Radek
>
> PS: sorry if i posted this twice - not sure now.
>
> ________________________________________________________________________________
> Objevte kouzlo digitálnà fotografie s fotoaparáty Hewlett-Packard. V Albico internetovém obchodu Vás Äeká dobrý nákup! http://www.email.cz/aio
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list