1
0
Fork 0
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:
Brian Fiete 2020-10-27 14:55:23 -07:00
parent b43007a1b6
commit 9706a76097

View file

@ -1583,7 +1583,7 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
{
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;
}
}
@ -1592,7 +1592,7 @@ void BfDefBuilder::Visit(BfTypeDeclaration* typeDeclaration)
{
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;
}
}