Fixed false positive #6030: inheriting classes is not a variable declaration.