From 9706a76097b0e4fe8f0e87a4897ee2bbce9db12f Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 27 Oct 2020 14:55:23 -0700 Subject: [PATCH] Fixed abstract/concrete warnings for invalid types --- IDEHelper/Compiler/BfDefBuilder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IDEHelper/Compiler/BfDefBuilder.cpp b/IDEHelper/Compiler/BfDefBuilder.cpp index 7dc7b13b..5fe5d948 100644 --- a/IDEHelper/Compiler/BfDefBuilder.cpp +++ b/IDEHelper/Compiler/BfDefBuilder.cpp @@ -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; } }