Skip to content

Oneof can't use property with type of another message? #131

@Tsarfolk

Description

@Tsarfolk

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;
}

optional Themes theme = 1;

}

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions