This documentation is archived and is not being maintained.

Compiler Error C3418

Error Message

access specifier 'specifier' is not supported

A CLR access specifier was specified incorrectly. For more information, see Type and Member Visibility.

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(){}
};
Show: