-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
|
||
package abs_reference; | ||
|
||
message Scope1 { | ||
message Scope2 { | ||
message A {} | ||
|
||
message Scope1 { | ||
Scope2.A field_a = 1; | ||
.abs_reference.Scope2.B field_b_should_be_message = 2; | ||
abs_reference.Scope2.B field_b_should_be_enum = 3; | ||
.abs_reference.Scope1.Scope2 field_c = 4; | ||
} | ||
|
||
// Attempt to confuse the field references above by defining a message that | ||
// clashes with the root package name. | ||
message abs_reference { | ||
// Attempt to further cause confusion by having this message define | ||
// submessages with conflicting field types. | ||
message Scope2 { | ||
enum B { UNKNOWN_SCOPE2_ENUM_A = 0; } | ||
} | ||
} | ||
} | ||
} | ||
|
||
message Scope2 { | ||
message B {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters