dfmt/tests/issue0100.d

15 lines
180 B
D

unittest
{
loop: while (i < tokens.length) switch (tokens[i].type)
{
case tok!"(":
parenDepth++;
i++;
break;
case tok!"{":
braceDepth++;
i++;
break;
}
}