mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed fail crash
This commit is contained in:
parent
0783fd3318
commit
d35ef0e1e8
1 changed files with 5 additions and 1 deletions
|
@ -18006,7 +18006,11 @@ void BfExprEvaluator::PerformUnaryOperation_OnResult(BfExpression* unaryOpExpr,
|
|||
|
||||
if (numericFail)
|
||||
{
|
||||
if (mResult.mType->IsInterface())
|
||||
if (opToken == NULL)
|
||||
{
|
||||
BF_ASSERT(mModule->mBfIRBuilder->mIgnoreWrites);
|
||||
}
|
||||
else if (mResult.mType->IsInterface())
|
||||
{
|
||||
mModule->Fail(
|
||||
StrFormat("Operator '%s' cannot be used on interface '%s'. Consider rewriting using generics and use this interface as a generic constraint.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue