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: [email protected]
          Reporter: [email protected]

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;
}
---

--

Reply via email to