This documentation is archived and is not being maintained.

Compiler Error C3923

'member' : local class, struct, or union definitions are not allowed in a member function of a managed class

The following sample generates C3923.

// C3923.cpp
// compile with: /clr /c
ref struct x {
   void Test() {
      struct a {};   // C3923
      class b {};   // C3923
      union c {};   // C3923