mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Don't attempt comptime emissions in unspecialized generics
This commit is contained in:
parent
ae399c0ae2
commit
40288eeb3a
1 changed files with 5 additions and 1 deletions
|
@ -4161,7 +4161,11 @@ void BfModule::DoPopulateType(BfType* resolvedTypeRef, BfPopulateType populateTy
|
|||
}
|
||||
|
||||
bool tryCE = true;
|
||||
if (typeInstance->mDefineState == BfTypeDefineState_CETypeInit)
|
||||
|
||||
if (typeInstance->IsUnspecializedType())
|
||||
tryCE = false;
|
||||
|
||||
if ((typeInstance->mDefineState == BfTypeDefineState_CETypeInit) && (tryCE))
|
||||
{
|
||||
if (populateType <= BfPopulateType_AllowStaticMethods)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue