mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed extension initializers and dtors. [NoExtension]. Extension warning
This commit is contained in:
parent
6e71cbc765
commit
b6db69d2b0
15 changed files with 235 additions and 64 deletions
|
@ -2008,8 +2008,10 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
|||
|
||||
if (mCurTypeDef->mTypeCode == BfTypeCode_TypeAlias)
|
||||
needsDefaultCtor = false;
|
||||
if (mCurTypeDef->mTypeCode == BfTypeCode_Extension)
|
||||
needsDefaultCtor = false;
|
||||
|
||||
if ((needsDefaultCtor) && (!hasDefaultCtor))
|
||||
if ((needsDefaultCtor) && ((!hasDefaultCtor)))
|
||||
{
|
||||
BfProtection prot = hasCtor ? BfProtection_Hidden : BfProtection_Public;
|
||||
if (mCurTypeDef->mName == mSystem->mEmptyAtom)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue