[Issue 15501] New: bad error message: Error: no property 'nsecs' for type 'MonoTimeImpl!cast(ClockType)0'
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Jan  2 18:27:09 PST 2016
    
    
  
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 at puremagic.com
          Reporter: timothee.cour2 at 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;
}
---
--
    
    
More information about the Digitalmars-d-bugs
mailing list