diff --git a/betterproto/tests/inputs/import_root_package_from_child/import_root_package_from_child.proto b/betterproto/tests/inputs/import_root_package_from_child/import_root_package_from_child.proto new file mode 100644 index 00000000..9e7dbcd4 --- /dev/null +++ b/betterproto/tests/inputs/import_root_package_from_child/import_root_package_from_child.proto @@ -0,0 +1,11 @@ +syntax = "proto3"; + +import "root.proto"; + +package child; + +// Tests generated imports when a message inside a child-package refers to a message defined in the root. + +message Test { + RootMessage message = 1; +} diff --git a/betterproto/tests/inputs/import_root_package_from_child/root.proto b/betterproto/tests/inputs/import_root_package_from_child/root.proto new file mode 100644 index 00000000..650b29b5 --- /dev/null +++ b/betterproto/tests/inputs/import_root_package_from_child/root.proto @@ -0,0 +1,5 @@ +syntax = "proto3"; + + +message RootMessage { +}