mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed crash attempting to bind function to const
This commit is contained in:
parent
3864a8896b
commit
7ca654aab1
3 changed files with 31 additions and 2 deletions
|
@ -13093,7 +13093,7 @@ BfIRValue BfModule::CastToFunction(BfAstNode* srcNode, const BfTypedValue& targe
|
|||
{
|
||||
if ((!methodInstance->mIsUnspecialized) && (HasCompiledOutput()))
|
||||
AssertErrorState();
|
||||
return GetDefaultValue(dataType);
|
||||
return GetDefaultTypedValue(dataType, false, BfDefaultValueKind_Value).mValue;
|
||||
}
|
||||
bindFuncVal = methodRefMethod.mFunc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue