Compiler Error C3652
'override' : a function that explicitly overrides must be virtual
A function that does an explicit override must be virtual. For more information, see Explicit Overrides.
The following sample generates C3652:
// C3652.cpp
// compile with: /clr /c
public interface class I {
void f();
};
public ref struct R : I {
void f() = I::f {} // C3652
// try the following line instead
// virtual void f() = I::f {}
};
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