reznikmm / protobuf

The Google Protocol Buffers implementation in Ada
MIT License
32 stars 5 forks source link

Fix type name clash from two imported files #13

Closed mgrojo closed 2 years ago

mgrojo commented 2 years ago

The fixed case is: a.proto b.proto c.proto

package A in a.proto defines message T. package B in b.proto defines message T. c.proto imports both a.proto and b.proto and uses A.T and B.T.

The compiler generated a body from c.proto which had name clashes for generic instantiation (*_IO packages) and type declarations (Integer_*).

reznikmm commented 2 years ago

This is so impressive! Thank you!