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

Merge pull request #115 from mandrelavoie/change-mention-of-stack-keyword-to-scope-in-error-message

Changed mention of 'stack' to 'scope' in error msg
This commit is contained in:
Brian Fiete 2020-04-09 05:48:14 -07:00 committed by GitHub
commit 470cf589ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6812,7 +6812,7 @@ BfTypedValue BfExprEvaluator::MatchMethod(BfAstNode* targetSrc, BfMethodBoundExp
{ {
if ((!resolvedTypeInstance->IsStruct()) && (!resolvedTypeInstance->IsTypedPrimitive())) if ((!resolvedTypeInstance->IsStruct()) && (!resolvedTypeInstance->IsTypedPrimitive()))
{ {
mModule->Fail("Objects must be allocated through 'new' or 'stack'", targetSrc); mModule->Fail("Objects must be allocated through 'new' or 'scope'", targetSrc);
return BfTypedValue(); return BfTypedValue();
} }