December 31, 2018 [Issue 19529] New: An example from Wikipedia does not compile | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19529 Issue ID: 19529 Summary: An example from Wikipedia does not compile Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: porton@narod.ru --- template t(T){ T get(){ return mValue; } } class C{ private int mValue; mixin t(int); } --- $ dmd test.d test.d(9): Error: ; expected after mixin test.d(9): Error: no identifier for declarator int test.d(9): Error: declaration expected, not ) The code above is from https://en.wikibooks.org/wiki/D_Programming/Mixins -- |
Copyright © 1999-2021 by the D Language Foundation