Compiler Error C3654
'text' : syntax error in explicit override
An unexpected string was in an explicit override. For more information, see Explicit Overrides.
The following sample generates C3654:
// C3654.cpp
// compile with: /clr /c
public ref struct B {
virtual void f() = 0;
virtual void g() = 0;
virtual void h() = 0;
};
public ref struct Q : B {
virtual void f() = B::f, 3 {} // C3654
// try the following line instead
// virtual void g() = B::g, B::h {}
};
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