编译器错误 C3656

“override”:替代说明符不能重复

显式替代关键字只能指定一次。 有关详细信息,请参阅显式重写

以下示例生成 C3656:

// C3656.cpp
// compile with: /clr /c
public interface struct O {
   int f();
};

public ref struct V : O {
   int f() override override { return 0; }   // C3656
   // try the following line instead
   // int f() override { return 0; }
};