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(){}
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for