Compiler Error C3653
'function' : cannot be used as a named override: a function being overridden not found; did you forget to name the function explicitly, using a :: operator?
An explicit override specified a function that was not found in any interface. For more information, see Explicit Overrides.
The following sample generates C3653:
// C3653.cpp
// compile with: /clr
public interface struct I {
void h();
};
public ref struct X : public I {
virtual void f() new sealed = J {}; // C3653 no J in scope
virtual void g() {} // OK
virtual void h() new sealed = I::h {}; // OK
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for