← Back to index
|
Original Bugzilla link
Bug 15182 – only(enums) refused
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-10-09T13:29:00Z
Last change time
2015-10-15T19:58:55Z
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2015-10-09T13:29:19Z
void main() { import std.range: only; enum Test { A } only(Test.A, Test.A); } dmd v2.067: ...\src\phobos\std\range\package.d(6046): Error: cannot implicitly convert expression (0) of type int to Test[2] test.d(4): Error: template instance std.range.only!(Test, Test) error instantiating
Comment #1
by andrej.mitrovich — 2015-10-11T13:40:14Z
Seems to work in 2.068.2
Comment #2
by dlang-bugzilla — 2015-10-15T19:58:55Z
Introduced in
https://github.com/D-Programming-Language/dmd/pull/3885
Fixed in
https://github.com/D-Programming-Language/dmd/pull/4706