Hello!
This code isn't compile with an error
<<<'test' is not declared>>>
at the line if(test != nTest) {
class Base {
private int m_test;
void set_test(int nTest) {
m_test = nTest;
}
int get_test() {
return m_test;
}
}
class Derived : Base {
private int m_numChanges;
void set_test(int nTest) override {
if(test != nTest) {
Base::set_test(nTest);
m_numChanges++;
}
}
}
And to allow the code above to be compiled it's necessary to change the row to
if(get_test() != nTest) {
It seems there's a bug in compiler causing this problem.
Thanks!