mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Don't set mHasBeenInstantiated from comptime module
This commit is contained in:
parent
0208c74839
commit
1bacf5eee2
1 changed files with 1 additions and 1 deletions
|
@ -19420,7 +19420,7 @@ void BfModule::ProcessMethod(BfMethodInstance* methodInstance, bool isInlineDup,
|
||||||
SetAndRestoreValue<bool> prevIgnoreErrors(mIgnoreErrors);
|
SetAndRestoreValue<bool> prevIgnoreErrors(mIgnoreErrors);
|
||||||
SetAndRestoreValue<bool> prevIgnoreWarnings(mIgnoreWarnings, mIsComptimeModule);
|
SetAndRestoreValue<bool> prevIgnoreWarnings(mIgnoreWarnings, mIsComptimeModule);
|
||||||
|
|
||||||
if ((methodInstance->mIsReified) &&
|
if ((!mIsComptimeModule) && (methodInstance->mIsReified) &&
|
||||||
((methodDef->mMethodType == BfMethodType_Ctor) || (methodDef->mMethodType == BfMethodType_CtorNoBody)))
|
((methodDef->mMethodType == BfMethodType_Ctor) || (methodDef->mMethodType == BfMethodType_CtorNoBody)))
|
||||||
{
|
{
|
||||||
mCurTypeInstance->mHasBeenInstantiated = true;
|
mCurTypeInstance->mHasBeenInstantiated = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue