statement unittest
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Mar 29 12:29:38 UTC 2024
On 30/03/2024 12:53 AM, Nicholas Wilson wrote:
> there should be no DIP required here, `unittest`s are function
> declarations, and so they _should_ work as `unittest => assert(1==1);`.
> They don't currently though (purely a problem with the parser[1]), that
> seems like a bug, please file one.
>
> [1]:
> https://github.com/dlang/dmd/blob/e00869b27e3d9cabed2b6e73503561997398759c/compiler/src/dmd/parse.d#L521
> explicitly checks for { }
> a similar problem exists for `parseUnitTest` that calls `parseStatement`
> that explicitly checks for `{}`
https://issues.dlang.org/show_bug.cgi?id=24467
More information about the dip.ideas
mailing list