www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15501] New: bad error message: Error: no property 'nsecs' for

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

          Issue ID: 15501
           Summary: bad error message: Error: no property 'nsecs' for type
                    'MonoTimeImpl!cast(ClockType)0'
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: timothee.cour2 gmail.com

dmd -c -o- main.d:
 Error: no property 'nsecs' for type 'MonoTimeImpl!cast(ClockType)0'
the type in the error message is invalid, it should be:

'MonoTimeImpl!(cast(ClockType)0)'

---
void test() {
  static import core.time;
  auto temp=core.time.MonoTime.currTime.nsecs * 1e-9;
}
---

--
Jan 02 2016