Skip to content

Commit

Permalink
Remove 'in' storage class from nextState delegate
Browse files Browse the repository at this point in the history
The 'in' storage class on delegate should make it 'const scope',
but those delegates are stored within the function so cannot be 'scope'.
  • Loading branch information
Geod24 committed Jul 30, 2020
1 parent f052165 commit 5171925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/dyaml/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ final class Parser
}

///Parse a key in flow context.
Event parseFlowKey(in Event delegate() @safe nextState) @safe
Event parseFlowKey(Event delegate() @safe nextState) @safe
{
const token = scanner_.front;
scanner_.popFront();
Expand All @@ -848,7 +848,7 @@ final class Parser
}

///Parse a mapping value in a flow context.
Event parseFlowValue(TokenID checkId, in Event delegate() @safe nextState)
Event parseFlowValue(TokenID checkId, Event delegate() @safe nextState)
@safe
{
if(scanner_.front.id == TokenID.value)
Expand Down

0 comments on commit 5171925

Please sign in to comment.