Udostępnij za pomocą


Błąd kompilatora C3161

"interface" : zagnieżdżanie klasy, struktury, unii lub interfejsu w interfejsie jest niedozwolone; zagnieżdżanie interfejsu w klasie, struktury lub unii jest niedozwolone

Uwagi

__interface może być wyświetlana tylko w zakresie globalnym lub w przestrzeni nazw. Klasa, struktura lub unia nie mogą być wyświetlane w interfejsie.

Przykład

Poniższy przykład generuje kod C3161.

// C3161.cpp
// compile with: /c
__interface X {
   __interface Y {};   // C3161 A nested interface
};