Summary
While cleaning up some editable fields I forgot to remove an addition @editable
attribute. To my surprise the compiler didn’t flag this during compilation, but it probably should.
Please select what you are reporting on:
Verse
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
something := class {
@editable # this is not being flagged
@editable
Value: int
}
Expected Result
The compiler should be more strict and pemit only a single usages of the same attribute.
Observed Result
The attribute can be stacked multiple times without raising any compile diagnostics.
Platform(s)
UEFN (v36.20)
Additional Notes
While this might not be harmful, it shouldn’t be encouraged or allowed in my opinion. The compiler should at least raise a warning of duplicate attributes.