הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'var' : a literal data member must be initialized
Remarks
A literal variable must be initialized when it is declaraed.
Example
The following example generates C3886:
// C3886.cpp
// compile with: /clr /c
ref struct Y1 {
literal int staticConst; // C3886
literal int staticConst2 = 0; // OK
};