Kompilatorfel C3923

"medlem" : definitioner av lokal klass, struct eller union tillåts inte i en medlemsfunktion i en WinRT- eller hanterad klass

Example

I följande exempel genereras C3923.

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