Closed simonsargeant closed 6 years ago
The generated enums do not have the correct type. barrister-go generates constants of the form:
barrister-go
type MyString string const ( MyStringOneString MyString = "onestring" MyStringTwoString = "twostring" )
However only the first constant is of the correct type, as demonstrated in this playground. This PR adds a test case and declares the type on each line.
@coopernurse any chance that you can take a look at this?
The generated enums do not have the correct type.
barrister-go
generates constants of the form:However only the first constant is of the correct type, as demonstrated in this playground. This PR adds a test case and declares the type on each line.