1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +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 (curTypeDef != targetType->mTypeDef)
if (curTypeDef != mModule->mCurTypeInstance->mTypeDef)
{
// We're calling the base class's ctor from a derived class
if (checkProt <= BfProtection_Private)