Bug 15033 – Element type of float iota is double

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-09-09T06:36:00Z
Last change time
2015-10-04T18:20:53Z
Assigned to
nobody
Creator
acehreli

Comments

Comment #0 by acehreli — 2015-09-09T06:36:39Z
The following assert fails (passes with 'double'): import std.range; void main() { static assert(is (ElementType!(typeof(iota(0f))) == float)); } There are a couple of recommended solutions in the following thread: http://forum.dlang.org/thread/[email protected] Ali
Comment #1 by github-bugzilla — 2015-09-10T11:04:03Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c548f3d2e4ea3149ac4ca3f27bb185460211a3f0 Merge pull request #3641 from nordlow/correct-iota-return-type Fix issue 15033 - Element type of float iota is double
Comment #2 by github-bugzilla — 2015-10-04T18:20:53Z