mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixit for adding ctor
This commit is contained in:
parent
0794ed8592
commit
4571221551
3 changed files with 81 additions and 0 deletions
|
@ -5888,6 +5888,10 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
{
|
||||
error = mModule->Fail(StrFormat("No parameterless constructor is available for base class. Consider calling base constructor '%s'.",
|
||||
mModule->MethodToString(methodInstance).c_str()), refNode);
|
||||
|
||||
auto srcNode = mModule->mCurMethodInstance->mMethodDef->GetRefNode();
|
||||
if ((autoComplete != NULL) && (autoComplete->CheckFixit(srcNode)))
|
||||
autoComplete->FixitAddConstructor(mModule->mCurTypeInstance);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue