Export (0) Print
Expand All
Expand Minimize

Compiler Error C3655

Error Message

'function' : function already explicitly overridden

A function can only be explicitly overridden once. For more information, see Explicit Overrides.

The following sample generates C3655:

// C3655.cpp
// compile with: /clr /c
public ref struct B {
   virtual void f();
   virtual void g();
};

public ref struct D : B {
   virtual void f() new sealed = B::f;
   virtual void g() new sealed = B::f;   // C3655
   // try the following line instead
   // virtual void g() new sealed = B::g;
};

Community Additions

ADD
Show:
© 2015 Microsoft