djinni
djinni copied to clipboard
Having a variable in a record with the same name as an enum produces an error on ObjC
MyEnum = enum {
blah;
bloop;
}
MyRecord = record {
myEnum: MyEnum;
}
Opening this in Objective-C throws the error "must use 'enum' to refer to type MyEnum in this scope" in the MyEnumTranslator.mm file. It also upper-cases the variable name myEnum so it becomes MyEnum, making the variable name and enum name conflict.
Sort of a tangent: Djinni expects all identifiers in the ".djinni" file to be of the form "foo_bar". Maybe it should warn when they aren't?