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:
parent
048c1c1ab8
commit
6874402e58
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue