I am writing a code that and suddenly see that "," doesn't cause any compilation error. Why ?

What I mean

public enum A {
    B, C, ; // no compilation error
}

but

int a, b, ; // compilation error
Edit
Report