Trailing Comma

Will this code compile?

public enum Foo {

No? Sure?

You’ll be amazed, like Craig Andera, if you compile the above code and find that it is not only successful but also does not raise any warning messages.

It looks like another hidden feature of C# than a bug.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s