Compiler Error C3291
'default' : cannot be the name of a trivial property
A trivial property cannot be named default
. See property for more information.
Example
The following sample generates C3291.
// C3291.cpp
// compile with: /clr /c
ref struct C {
property System::String ^ default; // C3291
property System::String ^ Default; // OK
};
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