Unable to rename test class
Issue #2247
resolved
Prompted with an error when renaming test classes: “Lead elements cannot have children.”
So far, I have only experienced this with renaming classes that are annotated with @IsTest
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.2.4.7.
- Log in to comment
Fix committed for the next build. This was an unexpected regression from the recent set of improvements around constructors where an implicit constructor, e.g., a default no-arg constructor for a type without any explicit constructors, would be included in the rename for the containing class. Since it’s not real (i.e., physical), it led to this error. Sorry about that!