Errore del compilatore C3880
'var': non può essere un membro dati letterale
Il tipo di un attributo letterale deve essere o convertibile in fase di compilazione in uno dei tipi seguenti:
tipo integrale
string
enumerazione con un tipo integrale o sottostante
L'esempio seguente genera l'errore C3880:
// C3880.cpp
// compile with: /clr /c
ref struct Y1 {
literal System::Decimal staticConst1 = 10; // C3880
literal int staticConst2 = 10; // OK
};