Skip to content

Commit

Permalink
formats_err: add nav_parent_multi_one_unused
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Apr 15, 2024
1 parent 66e75b3 commit ede1105
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions formats_err/nav_parent_multi_one_unused.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# nav_parent_multi_one_unused.ksy: /types/common/seq/0/size:
# error: don't know how to call method 'len_body' of object type 'CalcKaitaiStructType(false)'
#
meta:
id: nav_parent_multi_one_unused
seq:
- id: len_body
type: u1
- id: branch
type: common
types:
# This type is unreachable from the top-level `seq`, but it is still
# generated, so it must affect the derived type of `_parent` in the
# `common` type, otherwise we would run into
# https://github.com/kaitai-io/kaitai_struct/issues/961.
unreachable:
seq:
- id: branch
type: common
common:
seq:
- id: body
size: _parent.len_body

0 comments on commit ede1105

Please sign in to comment.