[Issue 20306] New: incomplete mixin type with a lambda

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 18 16:21:43 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20306

          Issue ID: 20306
           Summary: incomplete mixin type with a lambda
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: destructionator at gmail.com

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.

--


More information about the Digitalmars-d-bugs mailing list