mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed concrete method warning
This commit is contained in:
parent
5167298ab2
commit
7883d0cafa
1 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,6 @@
|
||||||
#include "BfCodeGen.h"
|
#include "BfCodeGen.h"
|
||||||
#include "BfExprEvaluator.h"
|
#include "BfExprEvaluator.h"
|
||||||
#include "../Backend/BeLibManger.h"
|
#include "../Backend/BeLibManger.h"
|
||||||
#include <fcntl.h>
|
|
||||||
#include "BfConstResolver.h"
|
#include "BfConstResolver.h"
|
||||||
#include "BfMangler.h"
|
#include "BfMangler.h"
|
||||||
#include "BeefySysLib/util/PerfTimer.h"
|
#include "BeefySysLib/util/PerfTimer.h"
|
||||||
|
@ -25,6 +24,8 @@
|
||||||
#include "BfIRCodeGen.h"
|
#include "BfIRCodeGen.h"
|
||||||
#include "BfDefBuilder.h"
|
#include "BfDefBuilder.h"
|
||||||
#include "BfDeferEvalChecker.h"
|
#include "BfDeferEvalChecker.h"
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
|
|
||||||
|
@ -21472,7 +21473,9 @@ void BfModule::DoMethodDeclaration(BfMethodDeclaration* methodDeclaration, bool
|
||||||
{
|
{
|
||||||
if (methodDef->mProtection != BfProtection_Public) //TODO: MAKE AN ERROR
|
if (methodDef->mProtection != BfProtection_Public) //TODO: MAKE AN ERROR
|
||||||
Warn(0, "Protection specifiers can only be used with interface methods containing a default implementation body", methodDeclaration->mProtectionSpecifier);
|
Warn(0, "Protection specifiers can only be used with interface methods containing a default implementation body", methodDeclaration->mProtectionSpecifier);
|
||||||
if ((methodDeclaration->mVirtualSpecifier != NULL) && (methodDeclaration->mVirtualSpecifier->mToken != BfToken_Abstract)) //TODO: MAKE AN ERROR
|
if ((methodDeclaration->mVirtualSpecifier != NULL) &&
|
||||||
|
(methodDeclaration->mVirtualSpecifier->mToken != BfToken_Abstract) &&
|
||||||
|
(methodDeclaration->mVirtualSpecifier->mToken != BfToken_Concrete)) //TODO: MAKE AN ERROR
|
||||||
Warn(0, "Virtual specifiers can only be used with interface methods containing a default implementation body", methodDeclaration->mVirtualSpecifier);
|
Warn(0, "Virtual specifiers can only be used with interface methods containing a default implementation body", methodDeclaration->mVirtualSpecifier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue