Edit

Share via


Compiler Error C3611

'function': a sealed function cannot have a pure-specifier

A sealed function was declared incorrectly. For more information, see sealed.

Example

The following sample generates C3611.

// C3611.cpp
// compile with: /clr /c

ref struct V {
   virtual void Test() sealed = 0;   // C3611
   virtual void Test2() sealed;   // OK
   virtual void Test3() = 0;   // OK
};