www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14530] New: TickDuration to! is broken

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

          Issue ID: 14530
           Summary: TickDuration to! is broken
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: ketmar ketmar.no-ip.org

this code is not working anymore with git HEAD:

void main () {
  import core.time;
  auto t = TickDuration.from!"seconds"(1000);
  auto n = t.to!("msecs", float);
}

include/d2/core/time.d(1706): Error: 'this' is only defined in non-static
member functions, not to

coretime_bug00.d(4): Error: template instance core.time.to!("msecs", float,
TickDuration) error instantiating

this was introduced in commit cb525460829e6354f203b2c467dc6d58e6e24c0e

--
Apr 30 2015