[Mono-list] enum examples from TiC# don't compile with mcs
Eric J. Peters
erpeters@informationinplace.com
Fri, 20 Dec 2002 08:11:51 -0500
And, just in case anyone is wondering, the same compilation error is spit out
by the final beta of Visual Studio 2003.
-Eric.
On Fri, 20 Dec 2002, Geoff Taylor wrote:
> jpo234@netscape.net <jpo234@netscape.net> scribbled:
>
> :: If the ECMA C# standard does not allow this, then it's still
> :: interesting to learn what csc does with the code. Anybody with a
> :: Windows machine at hand?
>
> One quick copy&paste later, it says:
>
> ----------
> >c:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\csc EnumTest.cs
> Microsoft (R) Visual C# .NET Compiler version 7.00.9466
> for Microsoft (R) .NET Framework version 1.0.3705
> Copyright (C) Microsoft Corporation 2001. All rights reserved.
>
> EnumTest.cs(14,32): error CS0019: Operator '+' cannot be applied to operands
> of
> type 'EnumTest.Coin' and 'EnumTest.Coin'
> ----------
>
> Cheers,
>
> Geoff
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list