{"action":"reopened","issue":{"url":"https://api.github.com/repos/kaitai-io/kaitai_struct/issues/459","repository_url":"https://api.github.com/repos/kaitai-io/kaitai_struct","labels_url":"https://api.github.com/repos/kaitai-io/kaitai_struct/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/kaitai-io/kaitai_struct/issues/459/comments","events_url":"https://api.github.com/repos/kaitai-io/kaitai_struct/issues/459/events","html_url":"https://github.com/kaitai-io/kaitai_struct/issues/459","id":341212529,"node_id":"MDU6SXNzdWUzNDEyMTI1Mjk=","number":459,"title":"Parent type inference works incorrectly when _parent is overridden with \"parent:\"","user":{"login":"KOLANICH","id":240344,"node_id":"MDQ6VXNlcjI0MDM0NA==","avatar_url":"https://avatars1.githubusercontent.com/u/240344?v=4","gravatar_id":"","url":"https://api.github.com/users/KOLANICH","html_url":"https://github.com/KOLANICH","followers_url":"https://api.github.com/users/KOLANICH/followers","following_url":"https://api.github.com/users/KOLANICH/following{/other_user}","gists_url":"https://api.github.com/users/KOLANICH/gists{/gist_id}","starred_url":"https://api.github.com/users/KOLANICH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KOLANICH/subscriptions","organizations_url":"https://api.github.com/users/KOLANICH/orgs","repos_url":"https://api.github.com/users/KOLANICH/repos","events_url":"https://api.github.com/users/KOLANICH/events{/privacy}","received_events_url":"https://api.github.com/users/KOLANICH/received_events","type":"User","site_admin":false},"labels":[{"id":329236481,"node_id":"MDU6TGFiZWwzMjkyMzY0ODE=","url":"https://api.github.com/repos/kaitai-io/kaitai_struct/labels/question","name":"question","color":"1d76db","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-14T06:06:22Z","updated_at":"2018-07-16T09:38:12Z","closed_at":null,"author_association":"NONE","body":"```yaml\r\nmeta:\r\n  id: cntk_snippet\r\n  file-extension: model\r\n  endian: le\r\n  encoding: UTF-16le\r\n  title: a piece of Microsoft CNTK format to test KS\r\n  license: MIT\r\nseq:\r\n  - id: network\r\n    type: section_hardcode(\"CN\")\r\ntypes:\r\n  begin_marker_hardcode:\r\n    params:\r\n      - id: name\r\n        type: str\r\n    seq:\r\n      - id: begin\r\n        contents: [\"B\", 0]\r\n      - id: marker\r\n        contents: [name]\r\n  end_marker:\r\n    params:\r\n      - id: name\r\n        type: str\r\n    seq:\r\n      - id: end\r\n        contents: [\"E\", 0]\r\n      - id: marker\r\n        contents: [name]\r\n  section_hardcode:\r\n    params:\r\n      - id: name\r\n        type: str\r\n    seq:\r\n      - id: begin_marker\r\n        type: begin_marker_hardcode(name)\r\n      - id: contents\r\n        type: section_contents(begin_marker.name)\r\n      - id: end_marker\r\n        type: end_marker(begin_marker.name)\r\n  section_contents:\r\n    params:\r\n      - id: section_name\r\n        type: str\r\n    seq:\r\n      - id: contents\r\n        parent: _parent._parent\r\n        #<computation_network> -> node_count\r\n        #<computation_network> (self._parent._parent) -> node_list <section_hardcode> (self._parent) -> contents <section_contents> (self) -> contents <node_list> -> nodes\r\n        type:\r\n          switch-on: section_name\r\n          cases:\r\n            \"'CN'\": computation_network\r\n            \"'NodeList'\": node_list\r\n    types:\r\n      computation_network:\r\n        seq:\r\n          - id: node_count\r\n            type: u8\r\n          - id: node_list\r\n            type: section_hardcode(\"NodeList\")\r\n      node_list:\r\n        seq:\r\n          - id: nodes\r\n            type: u1\r\n            repeat: expr\r\n            #repeat-expr: \"_parent.as<computation_network>.node_count\"\r\n            repeat-expr: \"_parent.node_count\" # /types/section_contents/types/node_list/seq/0/repeat-expr: unable to access 'node_count' in cntk::section_contents context\r\n```"}}
{"actor":{"display_login":"KOLANICH"}}