D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 20306 - incomplete mixin type with a lambda
Summary: incomplete mixin type with a lambda
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-18 16:21 UTC by Adam D. Ruppe
Modified: 2020-03-21 03:56 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Adam D. Ruppe 2019-10-18 16:21:43 UTC
void test(a...)() {}

void main() {
        test!(a => 0);
        test!(mixin("a => 0"));
}


Notice the first one working, but then mixin the same code fails with

bug.d(5): Error: incomplete mixin type a => 0

on new dmd, used to work until very recently.

Up to      2.087.1: Success and no output
Since      2.088.0: Failure with output: onlineapp.d(5): Error: incomplete mixin type `a => 0`


still works on the ldc and gdc versions I have here on my computer.
Comment 1 basile-z 2019-11-22 04:17:06 UTC
https://github.com/dlang/dmd/pull/10584