Skip to content

Missing wrap-prefix flags after type rename #416

@joente

Description

@joente

Describe the bug
When renaming a type, existing types referring to the renamed type miss the ! and ? prefix flags.

To Reproduce

set_type('A', {name: 'str', gender: 'str?'});
// define a wrap type referring to 'A' using the ! and ? wrap-prefix flags
set_type('W', {
  name: '!str',
  gender: '?str?',
}, true);

Now, rename type A:

rename_type('A', 'B');

The W type has now lost the prefix flags:

...
name: 'str',
gender: 'str?'

Expected behavior
The wrap-prefix flags should stay

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions