Compiler Error C3657
destructors cannot explicitly override or be explicitly overridden
Destructors or finalizers cannot be explicitly overridden. For more information, see Explicit Overrides.
Example
The following sample generates C3657.
// C3657.cpp
// compile with: /clr
public ref struct I {
virtual ~I() { }
virtual void a();
};
public ref struct D : I {
virtual ~D() = I::~I {} // C3657
virtual void a() = I::a {} // 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