forked from qt-creator/qt-creator
Reimplemented Type::as*Type() using virtual methods.
This commit is contained in:
@@ -135,9 +135,12 @@ bool CheckDeclarator::visit(DeclaratorAST *ast)
|
||||
// ### check the initializer
|
||||
// FullySpecifiedType exprTy = semantic()->check(ast->initializer, _scope);
|
||||
|
||||
if (ast->initializer && _fullySpecifiedType->isFunction()) {
|
||||
_fullySpecifiedType->asFunction()->setPureVirtual(true);
|
||||
if (ast->initializer && _fullySpecifiedType) {
|
||||
if (Function *funTy = _fullySpecifiedType->asFunctionType()) {
|
||||
funTy->setPureVirtual(true);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user