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:
The W type has now lost the prefix flags:
...
name: 'str',
gender: 'str?'
Expected behavior
The wrap-prefix flags should stay
Describe the bug
When renaming a type, existing types referring to the renamed type miss the
!and?prefix flags.To Reproduce
Now, rename type
A:The
Wtype has now lost the prefix flags:Expected behavior
The wrap-prefix flags should stay