description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Compiler Error C3654 |
Compiler Error C3654 |
11/04/2016 |
|
|
57d96e3f-6bbb-4eaa-934b-26c23b4ceb2e |
'text' : syntax error in explicit override
An unexpected string was in an explicit override. For more information, see Explicit Overrides.
The following sample generates C3654:
// C3654.cpp
// compile with: /clr /c
public ref struct B {
virtual void f() = 0;
virtual void g() = 0;
virtual void h() = 0;
};
public ref struct Q : B {
virtual void f() = B::f, 3 {} // C3654
// try the following line instead
// virtual void g() = B::g, B::h {}
};