1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fix to ctor fix

This commit is contained in:
Brian Fiete 2020-02-19 08:07:37 -08:00
parent 9ffdb94740
commit 660e7d8125

View file

@ -5603,7 +5603,7 @@ BfTypedValue BfExprEvaluator::MatchConstructor(BfAstNode* targetSrc, BfMethodBou
{ {
if (callCtorBodyOnly) if (callCtorBodyOnly)
{ {
if (curTypeDef != targetType->mTypeDef) if (curTypeDef != mModule->mCurTypeInstance->mTypeDef)
{ {
// We're calling the base class's ctor from a derived class // We're calling the base class's ctor from a derived class
if (checkProt <= BfProtection_Private) if (checkProt <= BfProtection_Private)