This is basically a continuation of this question about the most unpleasant analysis. I can understand that this is due to the ambiguity between the declaration of the function and the definition of the variable.
But in Como online, I'm just tired of the following.
class T{
public:
T(int i){
}
int fun1(){
return 1;
}
};
int main()
{
T myT(10);
myT.fun1();
}
But it compiles fine, and there were no errors. I looked at the standard documents, but could not come to reasoning.
So what am I missing here?
source
share