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:
parent
fb7251e71a
commit
3a7b7e559b
1 changed files with 4 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue