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 {}
};