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

Don't set mHasBeenInstantiated from comptime module

This commit is contained in:
Brian Fiete 2022-04-30 07:34:47 -07:00
parent 0208c74839
commit 1bacf5eee2

View file

@ -19420,7 +19420,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
SetAndRestoreValue<bool> prevIgnoreErrors(mIgnoreErrors);
SetAndRestoreValue<bool> prevIgnoreWarnings(mIgnoreWarnings, mIsComptimeModule);
if ((methodInstance->mIsReified) &&
if ((!mIsComptimeModule) && (methodInstance->mIsReified) &&
((methodDef->mMethodType == BfMethodType_Ctor) || (methodDef->mMethodType == BfMethodType_CtorNoBody)))
{
mCurTypeInstance->mHasBeenInstantiated = true;