Kernel/LHCbMath improve a bit issue with inheritance (@ibelyaev)

Cherry picked from !1427 (merged) on run2-patches

Merge request reports

Loading