43 lines
1.1 KiB
D
43 lines
1.1 KiB
D
unittest
|
|
{
|
|
{
|
|
bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo,
|
|
Three charlie, double delta)
|
|
{
|
|
if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo
|
|
&& foxtrot && golf && hotel && india && juliet)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
unittest
|
|
{
|
|
if (a)
|
|
{
|
|
while (sBraceDepth == 0 && indents.topIsTemp()
|
|
&& ((indents.top != tok!"if" && indents.top != tok!"version")
|
|
|| !peekIs(tok!"else")))
|
|
a();
|
|
}
|
|
}
|
|
|
|
unittest
|
|
{
|
|
callFunc({ int i = 10; return i; });
|
|
callFunc({
|
|
int i = 10;
|
|
foo(alpha, bravo, charlie, delta, echo, foxtrot, golf, echo);
|
|
doStuff(withThings, andOtherStuff);
|
|
return i;
|
|
});
|
|
callFunc({
|
|
int i = 10;
|
|
foo(alpha_longVarName, bravo_longVarName, charlie_longVarName, delta_longVarName,
|
|
echo_longVarName, foxtrot_longVarName, golf_longVarName, echo_longVarName);
|
|
doStuff(withThings, andOtherStuff);
|
|
return i;
|
|
}, more_stuff);
|
|
}
|