mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed abstract/concrete warnings for invalid types
This commit is contained in:
parent
b43007a1b6
commit
9706a76097
1 changed files with 2 additions and 2 deletions
|
@ -1583,7 +1583,7 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
|
||||||
{
|
{
|
||||||
if (mCurTypeDef->mTypeCode != BfTypeCode_Object)
|
if (mCurTypeDef->mTypeCode != BfTypeCode_Object)
|
||||||
{
|
{
|
||||||
mPassInstance->Warn(0, StrFormat("Types declared as '%s' cannot be 'abstract'", BfTokenToString(typeToken)).c_str(), typeDeclaration->mStaticSpecifier);
|
mPassInstance->Warn(0, StrFormat("Types declared as '%s' cannot be 'abstract'", BfTokenToString(typeToken)).c_str(), typeDeclaration->mAbstractSpecifier);
|
||||||
mCurTypeDef->mIsAbstract = false;
|
mCurTypeDef->mIsAbstract = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1592,7 +1592,7 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
|
||||||
{
|
{
|
||||||
if (mCurTypeDef->mTypeCode != BfTypeCode_Interface)
|
if (mCurTypeDef->mTypeCode != BfTypeCode_Interface)
|
||||||
{
|
{
|
||||||
mPassInstance->Warn(0, StrFormat("Types declared as '%s' cannot be 'concrete'", BfTokenToString(typeToken)).c_str(), typeDeclaration->mStaticSpecifier);
|
mPassInstance->Warn(0, StrFormat("Types declared as '%s' cannot be 'concrete'", BfTokenToString(typeToken)).c_str(), typeDeclaration->mAbstractSpecifier);
|
||||||
mCurTypeDef->mIsConcrete = false;
|
mCurTypeDef->mIsConcrete = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue