mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Properly throw error on capture specifier in non-lambda allocation
This commit is contained in:
parent
c23d44502b
commit
8cccec20fa
4 changed files with 25 additions and 20 deletions
|
@ -11362,7 +11362,7 @@ void BfModule::GetCustomAttributes(BfCustomAttributes* customAttributes, BfAttri
|
|||
{
|
||||
if (captureInfo == NULL)
|
||||
{
|
||||
Fail("Capture specifiers can only be used in lambda allocations", attributesDirective);
|
||||
Fail("Capture specifiers can only be used in lambda allocations", tokenNode);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue