[Issue 15033] New: Element type of float iota is double

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Sep 8 23:36:39 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=15033

          Issue ID: 15033
           Summary: Element type of float iota is double
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: acehreli at yahoo.com

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/msm14h$2ae$1@digitalmars.com

Ali

--


More information about the Digitalmars-d-bugs mailing list