Compiler Error C3611

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

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

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

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

Show: