Unable to rename test class

Issue #2247 resolved
John De Santiago created an issue

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)

  1. Scott Wells repo owner

    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!

  2. Log in to comment