Don't copy decorations twice when rebuilding a type. (#1835)
In `TypeManager::RebuildType`, the base cases call `Clone`, which will copy the decorations for the type. After that it breaks out of the switch statement and copies the decorations again. This has not causes any real problems yet because none of those types are allowed to have decorations. However to make the code more robust it is best to not copy twice because it should be empty. This way if a new base type or decoration is added that changes this rule the code will be correct.
Loading
Please register or sign in to comment