1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

CheckGenericConstraints var handling

This commit is contained in:
Brian Fiete 2025-01-23 12:27:47 -08:00
parent b63b4af6fe
commit 9a5d2ff665

View file

@ -8553,6 +8553,9 @@ bool BfModule::CheckGenericConstraints(const BfGenericParamSource& genericParamS
bool ignoreErrors = (errorOut == NULL) ||
((genericParamSource.mMethodInstance == NULL) && (genericParamSource.mTypeInstance == NULL));
if (checkArgType->IsVar())
return true;
BfType* origCheckArgType = checkArgType;
if (origCheckArgType->IsRef())