Adjusted the message to better reflect the location of accessed state and the base object;
BEFORE:Method 'func' of object 'b' directly accesses state 'hidden_state' of base class 'base.inner_state.very_inner_state'AFTER:Method 'func' of object 'test.b' directly accesses state 'inner_state.very_inner_state.hidden_state' of base class 'test.nested.base'
Fixed a bug which prevented nested state access from being detected.
EXAMPLE:
The following fixes are present in this PR:
Method 'func' of object 'b' directly accesses state 'hidden_state' of base class 'base.inner_state.very_inner_state'
AFTER:Method 'func' of object 'test.b' directly accesses state 'inner_state.very_inner_state.hidden_state' of base class 'test.nested.base'
EXPECTED OUTPUT:
Method 'method' of object 'child' directly accesses state 'state' of base class 'parent