Yes it is very much legal and useful in C# to have trailing commas and no it is not a (benign) compiler bug.
Microsoft added this feature for convenience - it is especially useful if the code is generated programmatically, if you do not have a special case for the first or last element. You will find a similar syntax in enumeration declarations, assigning a property in the initialization of an object, arrays, list, etc.
, , . , , , .
,
enum Cars
{
Honda,
Hyundai,
}
. Jon Skeet .NET , python
Food for thought: If it had no use why would it be there in the first place?