fix Issue 9952 - Attribute inference for virtual functions breaks subclasses
Merge pull request #1915 from 9rnsr/fix9952

[REG2.062] Issue 9952 - Attribute inference for virtual functions breaks subclasses