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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions