summaryrefslogtreecommitdiffstats
path: root/tests/regression/issue_125/extensionbug.proto
blob: fd1e74f105c449df7dcd6f13355e5d338e77b2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
syntax = "proto2";

message Message1
{
	optional uint32	fieldA = 1;
	extensions 30 to max;
}

message Message2
{
	extend Message1
	{
		optional Message2 extras = 30;
	}
	
	optional uint32	field1 = 1;
	optional uint32 field2 = 2;
}