Compiler Error C3611

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3611.

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: