1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Don't allow virtual method for ceMachine entrypoint

This commit is contained in:
Brian Fiete 2021-11-23 16:11:12 -08:00
parent 048c1c1ab8
commit 6874402e58

View file

@ -5521,6 +5521,10 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
mModule->Warn(0, "Concrete method may fail to comptime during specialization", targetSrc);
doConstReturn = true;
}
else if (methodDef->mIsVirtual)
{
// This could only really be the case for a Type, since no other 'this' could qualify as const
}
else
{
CeEvalFlags evalFlags = CeEvalFlags_None;