scala-js-ts-importer icon indicating copy to clipboard operation
scala-js-ts-importer copied to clipboard

Enum values are not parsed correctly

Open SrTobi opened this issue 6 years ago • 0 comments

Enum members can have optional values. At the moment they are parsed by parsing a number or a string. The specification, however, allows full expressions, like

enum Test {
  Member = (1 <<  2)
}

SrTobi avatar Jun 16 '19 12:06 SrTobi