Skip to content

Panic when enum variant with same name as another type #227

Description

@rooooooooob
hash = bytes .size (0..8)

non_overlap_basic_embed =  [
  ; @name identity
  tag: 0 //
  ; @name hash
  tag: 1, hash: bytes .size 32
]

This should be fine as it's prefixed as NonOverlapBasicEmbed::Hash but cddl-codegen panics during generation looking up Hash as an ident.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions