mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
* Fix missing namespace qualifier in Pack() for cross-namespace table references * Fix missing namespace qualifier in Pack() * Add cross_namespace_pack_test to Bazel build
19 lines
373 B
Plaintext
19 lines
373 B
Plaintext
// Test for cross-namespace Pack() code generation (issue #8948).
|
|
// Verifies that Create* calls in Pack() are properly namespace-qualified
|
|
// when referencing tables from different namespaces.
|
|
|
|
namespace native;
|
|
|
|
table TableWithNative {
|
|
value: int;
|
|
}
|
|
|
|
namespace foo;
|
|
|
|
table Consumer {
|
|
c1: native.TableWithNative;
|
|
c2: [native.TableWithNative];
|
|
}
|
|
|
|
root_type Consumer;
|