Kompilatorfel C3253

"function" : fel med explicit överstyrning

Anmärkningar

En uttrycklig åsidosättning angavs felaktigt. Du kan till exempel inte ange en implementering för en åsidosättning som du även anger som ren. Mer information finns i Explicita åsidosättningar.

Example

I följande exempel genereras C3253:

// C3253.cpp
// compile with: /clr
public interface struct I {
   void a();
   void b();
   void c();
};

public ref struct R : I {
   virtual void a() = 0, I::a {}   // C3253
   virtual void b() = I::a {}   // OK
   virtual void c() = 0;   // OK
};