https://issues.dlang.org/show_bug.cgi?id=20388
Issue ID: 20388
Summary: Parse error when compiling lambdas in mixins as
template parameters
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Fails with dmd 2.088:
```
void main() {
foo!(mixin("(int a) { return a; }"))();
}
void foo(alias t)() {
}
```
Error:
```
/tmp/foo.d-mixin-2(2): Error: basic type expected, not (
/tmp/foo.d-mixin-2(2): Error: function declaration without return type. (Note
that constructors are always named this)
```
This is expected to compile and did compile in previous dmd versions.
--