mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Added nullable(T), Result<T> can use null conditionals
This commit is contained in:
parent
336226d686
commit
68bf7bc801
19 changed files with 343 additions and 210 deletions
|
@ -1352,7 +1352,7 @@ BfIRValue BfModule::GetDefaultValue(BfType* type)
|
|||
}
|
||||
|
||||
if (type->IsPointer() || type->IsObjectOrInterface() || type->IsGenericParam() || type->IsVar() || type->IsRef() || type->IsNull() ||
|
||||
type->IsRetTypeType() || type->IsConcreteInterfaceType())
|
||||
type->IsModifiedTypeType() || type->IsConcreteInterfaceType())
|
||||
return mBfIRBuilder->CreateConstNull(mBfIRBuilder->MapType(type));
|
||||
if ((type->IsIntegral()) || (type->IsBoolean()))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue