Using FlatBuffers 1.10.0, if I try to compile a table that defines a field with the same name as a table, it is correctly rejected, but if the collision is in an included file and the files are namespaced, then the error is not reported. MWE:
// my_data.fbs
namespace test_ns;
table MyData {
Value:int;
}
// my_test.fbs
include "my_data.fbs";
namespace test_ns;
table Container {
MyData:MyData;
}
This is accepted and generates output which does not compile because the accessor field name collides with the generated struct name. Is this intentional/a limitation of how collisions are checked for?