dmd/compiler/test/compilable/uda_lambda.d
Paul Backus 7c95446800
Don't parse lambda as UDA without parentheses (#21009)
This brings the compiler's behavior in line with the language spec.

Fixes dlang/dlang.org#4137
2025-03-17 08:31:39 +08:00

3 lines
58 B
D

enum UDA;
int fun() @UDA => 7;
static assert(fun() == 7);