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:
parent
327ba62b5a
commit
03c8d72f33
2 changed files with 33 additions and 9 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue