Bug 14530 – [REG2.068a] TickDuration to! is broken
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-04-30T07:04:00Z
Last change time
2015-05-22T15:05:19Z
Assigned to
nobody
Creator
ketmar
Comments
Comment #0 by ketmar — 2015-04-30T07:04:06Z
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
Comment #1 by dlang-bugzilla — 2015-05-05T07:54:17Z
PR has been merged, didn't get auto-closed for some reason.
Comment #4 by dlang-bugzilla — 2015-05-22T15:05:19Z
(In reply to Steven Schveighoffer from comment #3)
> PR has been merged, didn't get auto-closed for some reason.
Because the issue # was not mentioned in the commit message.
There is a simple secret for easy and correct commit messages:
Copy the stuff in the gray band at the top of this page, starting with "Issue ..." and up to "(edit)", put that in the commit message, and prefix "fix " in front.