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:
parent
9ffdb94740
commit
660e7d8125
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue