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

Fixed cast constraint check for IOpConvertibleTo

This commit is contained in:
Brian Fiete 2020-06-29 16:53:39 -07:00
parent fb7251e71a
commit 3a7b7e559b

View file

@ -9903,9 +9903,6 @@ BfIRValue BfModule::CastToValue(BfAstNode* srcNode, BfTypedValue typedVal, BfTyp
auto castedVal = CastToValue(srcNode, typedVal, toType->GetUnderlyingType(), (BfCastFlags)(castFlags & ~BfCastFlags_Explicit), NULL);
return castedVal;
}
// Cannot cast (was error)
return BfIRValue();
}
// Actually perform conversion