[UE5.2.1, Bug report] References to widget elements break on 2nd level of widget inheritance

---------- edit ----------
There is now a Bug Report on the bug tracker website

---------- edit end ----------

Summary
variables of widget elements added in 2nd inheritance level are invalid.

Steps to Reproduce
() is the parent class
is adding something in the Designer >> Hierachy tab (outliner)

  1. create BaseWidget (UserWidget) [add NamedSlot named “N0”]
  2. create Child1 (BaseWidget) [add NamedSlot to N0 named “N1”]
  3. create Child2 (Child1) [add Button to N1 named “Button”]
  4. activate the IsVariable checkbox in the details panel of the Button
  5. In the Graph editor print the return value of the IsValid function for the Button variable

results
“false” will be printed to the console. References to the widget elements added to the Child2 widget class are invalid and thus can not be manipulated in the graph.

expected
“true” should be printed. References to the blueprints own widget elements should be valid just like in the parent classes.

Comments
Inherited widget elements would be valid.
On the 3rd inheritance level widget elements newly added in the Designer have a blank details panel and can’t be deleted.

Minimal Example Project
Bug_Widget_Inheritance.zip (33.5 KB)

I suspect this is a problem with the way inheritance is implemented on widgets in general, so I will link my other bug reports with a similar issues here: