aboutsummaryrefslogtreecommitdiff
path: root/flatcc/test/union_vector_test/union_vector.fbs
blob: 73b8800b788a1721b1b28ce2c04818998b135ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
table MuLan {
  sword_attack_damage: int;
}

table Rapunzel {
  hair_length: int;
}

table Belle {
  books_read: int;
}

union Character {
  MuLan,
  Rapunzel,
  Belle,
}

table Movie {
  characters: [Character];
  belles: [Belle];
  character: Character;
}

root_type Movie;
file_identifier "MOVI";