Introduced in: https://github.com/D-Programming-Language/dmd/pull/4944 Mentioned by Martin Nowak: https://github.com/D-Programming-Language/dmd/pull/4944#issuecomment-136210663 import std.file; struct Only(T) { private T _val; } auto only(V)(V v) { return Only!V(v); } static struct Chain(R...) { R source; } auto chain(R...)(R rs) { return Chain!R(rs); } void main() { string docRoot; chain( dirEntries(docRoot , "*.*" , SpanMode.shallow), only(docRoot) ); }
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7946344223863e67493695247d38cbb03db82cd6 fix Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct https://github.com/D-Programming-Language/dmd/commit/ce8e6d13cc82a8c9c175d4db9967f29dbd0d96e7 Merge pull request #4995 from 9rnsr/fix14985 [REG2.068.1-b1] Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7946344223863e67493695247d38cbb03db82cd6 fix Issue 14985 - Link failure for const TypeInfo of speculative instantiated struct https://github.com/D-Programming-Language/dmd/commit/ce8e6d13cc82a8c9c175d4db9967f29dbd0d96e7 Merge pull request #4995 from 9rnsr/fix14985