1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed issues with char8* attribute arguments

This commit is contained in:
Brian Fiete 2020-07-20 07:16:20 -07:00
parent 327ba62b5a
commit 03c8d72f33
2 changed files with 33 additions and 9 deletions

View file

@ -391,7 +391,15 @@ bool BfConstResolver::PrepareMethodArguments(BfAstNode* targetSrc, BfMethodMatch
extendedParamIdx++;
}
else
{
{
if ((argValue.mValue.IsFake()) && (!argValue.mType->IsValuelessType()))
{
if ((mModule->mCurMethodInstance == NULL) || (mModule->mCurMethodInstance->mMethodDef->mMethodType != BfMethodType_Mixin))
{
mModule->Fail("Expression does not evaluate to a constant value", argExpr);
}
}
llvmArgs.push_back(argValue.mValue);
paramIdx++;
}