Compiler Error C3283
'type' : an interface cannot have an instance constructor
A CLR interface cannot have an instance constructor. A static constructor is allowed.
The following sample generates C3283:
// C3283.cpp
// compile with: /clr
interface class I {
I(); // C3283
};
Possible resolution:
// C3283b.cpp
// compile with: /clr /c
interface class I {
static I(){}
};
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre