Compiler Warning (level 1) C4393
'var' : const has no effect on literal data member; ignored
A literal data member was also specified as const. Since a literal data member implies const, you do not need to add const to the declaration.
The following sample generates C4393:
// C4393.cpp
// compile with: /clr /W1 /c
ref struct Y1 {
literal const int staticConst = 10; // C4393
literal int staticConst2 = 10; // 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