Compile following two files:
ext.fbs
// ext.fbs
namespace test.ext;
table Something {
field: string;
}
test.fbs
// test.fbs
include "ext.fbs";
namespace test;
union TestUnion {
ext.Something,
}
table Test {
tu: TestUnion;
}
root_type Test;
$ flatc --dart -I ./ -o ./ ext.fbs test.fbs
flatc will generate this:
Something here is the type from ext.fbs and dart fails on highlighted string with undefined_identifier:
Undefined name 'Something'.
Try correcting the name to one that is defined, or defining the name.
Compile following two files:
ext.fbs
test.fbs
flatcwill generate this:Somethinghere is the type fromext.fbsand dart fails on highlighted string withundefined_identifier: