1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Method selection fix with extern constraint subsets, prim default ctor

This commit is contained in:
Brian Fiete 2021-11-01 09:30:37 -07:00
parent e887b2fb59
commit 4188f607c7
2 changed files with 11 additions and 2 deletions

View file

@ -7770,7 +7770,7 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
{
canAlloc = (checkGenericParamFlags & (BfGenericParamFlag_New | BfGenericParamFlag_Var)) != 0;
}
else
else if (checkArgType->IsPrimitiveType())
{
// Any primitive types and stuff can be allocated
canAlloc = true;