mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44:10 +02:00
Fixed false error for calling static interface methods
This commit is contained in:
parent
be6a132fb5
commit
a44f39b3e4
1 changed files with 4 additions and 0 deletions
|
@ -7048,6 +7048,10 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
|
||||||
if ((target.mType == NULL) && ((mModule->mCurMethodInstance->mIsForeignMethodDef) || (mModule->mCurTypeInstance->IsInterface())))
|
if ((target.mType == NULL) && ((mModule->mCurMethodInstance->mIsForeignMethodDef) || (mModule->mCurTypeInstance->IsInterface())))
|
||||||
isConstrained = true;
|
isConstrained = true;
|
||||||
|
|
||||||
|
// If mIgnoreWrites is off then we skip devirtualization, so allow this
|
||||||
|
if ((target.mType != NULL) && (!target.mType->IsInterface()) && (mModule->mBfIRBuilder->mIgnoreWrites))
|
||||||
|
isConstrained = true;
|
||||||
|
|
||||||
if (!isConstrained)
|
if (!isConstrained)
|
||||||
{
|
{
|
||||||
if (mModule->mCurTypeInstance->IsInterface())
|
if (mModule->mCurTypeInstance->IsInterface())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue