mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 09:51:12 +00:00
21 lines
369 B
Text
21 lines
369 B
Text
// Test for union creator naming consistency (issue #8843).
|
|
// Uses non-UpperCamel union name to verify that Function() naming
|
|
// is used consistently for both definition and call site.
|
|
|
|
namespace union_name_test;
|
|
|
|
table Foo {
|
|
val: int;
|
|
}
|
|
|
|
table Bar {
|
|
name: string;
|
|
}
|
|
|
|
union my_test_union { Foo, Bar }
|
|
|
|
table Container {
|
|
u: my_test_union;
|
|
}
|
|
|
|
root_type Container;
|