aboutsummaryrefslogtreecommitdiff
path: root/csharp/protos
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-06-25 17:46:57 +0100
committerJon Skeet <jonskeet@google.com>2015-06-29 09:27:54 +0100
commit8d83f8d13e48507ab3d0de345184bf8f5ccc7da9 (patch)
tree5c5334b2dc1c6e1f3081baa1c22c8aa6a38936c6 /csharp/protos
parentb08b6bf62e5f0398609cc95a34699df500ea110c (diff)
downloadprotobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.tar.gz
protobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.tar.bz2
protobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.zip
Fix for doubly-nested types - issue #307.
No specific test case - if the generated code compiles, the issue is fixed :)
Diffstat (limited to 'csharp/protos')
-rw-r--r--csharp/protos/extest/unittest_issues.proto9
1 files changed, 9 insertions, 0 deletions
diff --git a/csharp/protos/extest/unittest_issues.proto b/csharp/protos/extest/unittest_issues.proto
index c123acf1..33ce7d9b 100644
--- a/csharp/protos/extest/unittest_issues.proto
+++ b/csharp/protos/extest/unittest_issues.proto
@@ -9,6 +9,15 @@ option csharp_namespace = "UnitTest.Issues.TestProtos";
package unittest_issues;
option optimize_for = SPEED;
+// Issue 307: when generating doubly-nested types, any references
+// should be of the form A.Types.B.Types.C.
+message Issue307 {
+ message NestedOnce {
+ message NestedTwice {
+ }
+ }
+}
+
// Old issue 13: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=13
// New issue 309: https://github.com/google/protobuf/issues/309