Edit

Share via


Compiler Error C3418

access specifier 'specifier' is not supported

A CLR access specifier was specified incorrectly. For more information, see Type visibility and Member visibility in How to: Define and Consume Classes and Structs (C++/CLI).

Example

The following sample generates C3418.

// C3418.cpp
// compile with: /clr /c
ref struct m {
internal public:   // C3418
   void test(){}
};

ref struct n {
internal:   // OK
   void test(){}
};