Open Tsarfolk opened 8 years ago
For a temporary solution I can offer - rename OneOf field named "informatics":
message Subject {
oneof subjects {
string maths = 1;
string physics = 2;
Informatics informaticsField = 3;
}
}
message Informatics {
enum Themes {
CPLUSPLUS = 1;
JAVA = 2;
PASCAL = 3;
BASIC = 4;
}
optional Themes theme = 1;
}
It can be fixed by placing it after // oneOf declaration public typealias inf = (Informatics)
and changing type Informatics to inf But it's a bit harder i think then the solution above
I have such code in my photo file, i can compile it into swift file and everything ok message Subject { oneof subjects { string maths = 1; string physics = 2; Informatics informatics = 3; } }
message Informatics { enum Themes { CPLUSPLUS = 1; JAVA = 2; PASCAL = 3; BASIC = 4; }
}
But when i added compiled swift file i got 3 errors on Informatics (Use of undeclared type "Informatics"). Had I done smth wrong? protobuf version is 2.6.1