Skip to content

Commit 5bb6931

Browse files
#25 Two packages with the same name suffix should not cause naming conflict
1 parent e8a9960 commit 5bb6931

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
syntax = "proto3";
2+
3+
import "users_v1.proto";
4+
import "posts_v1.proto";
5+
6+
// Tests generated message can correctly reference two packages with the same leaf-name
7+
8+
message Test {
9+
users.v1.User user = 1;
10+
posts.v1.Post post = 2;
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
syntax = "proto3";
2+
3+
package posts.v1;
4+
5+
message Post {
6+
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
syntax = "proto3";
2+
3+
package users.v1;
4+
5+
message User {
6+
7+
}

0 commit comments

Comments
 (0)