August 28, 2020 [Issue 21207] New: Mixin get processed in lexical order, resulting in forward reference issues | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=21207 Issue ID: 21207 Summary: Mixin get processed in lexical order, resulting in forward reference issues Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: pro.mathias.lang@gmail.com ``` void foo (Callback cb); mixin(q{ alias Callback = void delegate(); }); ``` > test.d(1): Error: undefined identifier Callback Swap the order and it works. -- |
Copyright © 1999-2021 by the D Language Foundation