Backseating-Committee-2k/Backlang

Automatic enum value when not specified #221

furesoft posted onGitHub

When no values specified the index of the enum element should be used

enum Color
{
   R, 
   G, 
   B
}

becomes to

enum Color
{
     R = 0,
     G = 1,
     B = 2
}

when partially specified an error should be added.


Fund this Issue

$0.00
Funded

Pull requests