Author
anonymous
almost 8 years ago
Language
Compiler
Options
Author
anonymous
almost 8 years ago
$
prog.cc:13:10: error: conflicting return type specified for 'virtual void Override::Setup()'
void Setup() override {}
^~~~~
prog.cc:7:42: error: overriding 'virtual A::Setup_should_be_spelled_SetUp* A::Setup()'
virtual Setup_should_be_spelled_SetUp* Setup() { return 0; }
^~~~~
prog.cc:14:10: error: 'void Override::setup()' marked 'override', but does not override
void setup() override {}
^~~~~
prog.cc:20:10: error: conflicting return type specified for 'virtual void NoOverride::Setup()'
void Setup() {}
^~~~~
prog.cc:7:42: error: overriding 'virtual A::Setup_should_be_spelled_SetUp* A::Setup()'
virtual Setup_should_be_spelled_SetUp* Setup() { return 0; }
^~~~~
Exit Code:
1