#25 Two packages with the same name suffix should not cause naming conflict

This commit is contained in:
boukeversteegh 2020-05-25 21:15:39 +02:00
parent e8a9960b73
commit 5bb6931df7
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,11 @@
syntax = "proto3";
import "users_v1.proto";
import "posts_v1.proto";
// Tests generated message can correctly reference two packages with the same leaf-name
message Test {
users.v1.User user = 1;
posts.v1.Post post = 2;
}

View File

@ -0,0 +1,7 @@
syntax = "proto3";
package posts.v1;
message Post {
}

View File

@ -0,0 +1,7 @@
syntax = "proto3";
package users.v1;
message User {
}