[Mono-list] enum examples from TiC# don't compile with mcs
jpo
jpo234@netscape.net
Thu, 19 Dec 2002 17:14:03 +0100
Hi list,
the following example code from TiC# does not compile with mcs:
using System;
class EnumTest {
enum Coin: short {
Penny = 1,
Nickel = 5,
Dime = 10,
Quarter = 25,
Dollar = 100
}
public static void Main ()
{
short change = (short)(Coin.Penny + Coin.Nickel);
Console.WriteLine (change);
}
}
Question: is this a bug in mcs or a bug in the book? What does csc do?
Thanks in adance
Joerg