Skip to content

Commit

Permalink
Emitter: Return a literal instead of a scope string
Browse files Browse the repository at this point in the history
If 'in' implies 'scope', then we cannot return the variable.
Since this is a special case, just return the literal.
  • Loading branch information
Geod24 committed Sep 8, 2021
1 parent 0558d98 commit cb13a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/dyaml/emitter.d
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ struct Emitter(Range, CharType) if (isOutputRange!(Range, CharType))
{

string tagString = tag;
if(tagString == "!"){return tagString;}
if (tagString == "!") return "!";
string handle;
string suffix = tagString;

Expand Down

0 comments on commit cb13a1d

Please sign in to comment.