dmd/compiler/test/fail_compilation/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

7 lines
114 B
D

/+
TEST_OUTPUT:
---
fail_compilation/uda_lambda.d(7): Error: declaration expected, not `=>`
---
+/
@a => 7 int b;