“keyword”: 缺少相邻的分号,可能是关键字或标识符。
编译器需要找到一个分号,因此不能确定你的意图。 增加一个分号以解决此问题。
示例
以下示例生成 C2474。
// C2474.cpp
// compile with: /clr /c
ref class A {
ref class B {}
property int i; // C2474 error
};
// OK
ref class B {
ref class D {};
property int i;
};
ref class E {
ref class F {} property;
int i;
};