1
0
Fork 0
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:
Brian Fiete 2020-04-27 15:09:10 -07:00
parent 336226d686
commit 68bf7bc801
19 changed files with 343 additions and 210 deletions

View file

@ -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()))
{