mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 12:54:15 +02:00
Fixed field dtor error in autoprops
This commit is contained in:
parent
f831d75de2
commit
9ba8bd86b8
1 changed files with 7 additions and 4 deletions
|
@ -965,10 +965,13 @@ void BfDefBuilder::Visit(BfPropertyDeclaration* propertyDeclaration)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mCurTypeDef->mTypeCode == BfTypeCode_Interface)
|
if (propertyDeclaration->mFieldDtor != NULL)
|
||||||
Fail("Interface properties cannot have field destructors", propertyDeclaration->mFieldDtor);
|
{
|
||||||
else if (propertyDeclaration->mFieldDtor != NULL)
|
if (mCurTypeDef->mTypeCode == BfTypeCode_Interface)
|
||||||
Fail("Properties with method bodies cannot have field destructors", propertyDeclaration->mFieldDtor);
|
Fail("Interface properties cannot have field destructors", propertyDeclaration->mFieldDtor);
|
||||||
|
else
|
||||||
|
Fail("Properties with method bodies cannot have field destructors", propertyDeclaration->mFieldDtor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto methodDeclaration : propertyDeclaration->mMethods)
|
for (auto methodDeclaration : propertyDeclaration->mMethods)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue