mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed generic property binding
This commit is contained in:
parent
f2eb588de3
commit
b83bc2c2dc
4 changed files with 30 additions and 23 deletions
|
@ -3762,6 +3762,7 @@ void BfModule::ResolveConstField(BfTypeInstance* typeInstance, BfFieldInstance*
|
|||
fieldType = fieldInstance->GetResolvedType();
|
||||
if ((fieldType == NULL) || (fieldType->IsVar()))
|
||||
{
|
||||
SetAndRestoreValue<bool> prevIgnoreWrite(mBfIRBuilder->mIgnoreWrites, true);
|
||||
AssertErrorState();
|
||||
// Default const type is 'int'
|
||||
BfTypedValue initValue = GetDefaultTypedValue(GetPrimitiveType(BfTypeCode_IntPtr));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue