unittesting generic functions
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Aug 13 18:58:35 PDT 2014
On 8/13/14, 6:38 PM, Brian Schott wrote:
> On Thursday, 14 August 2014 at 01:10:54 UTC, Andrei Alexandrescu wrote:
>> Destroy https://issues.dlang.org/show_bug.cgi?id=13291?
>>
>> Andrei
>
> So it'll look like this?
>
> functionBody:
> blockStatement
> | inStatement outStatement? bodyStatement?
> | outStatement inStatement? bodyStatement?
> | unittest bodyStatement
> | unittest inStatement outStatement? bodyStatement
> | unittest outStatement inStatement? bodyStatement
> | bodyStatement
> ;
>
> That is, a unittest always requires a body, and thus can't be used in
> interfaces, correct?
That's about right.
Andrei
More information about the Digitalmars-d
mailing list