[Issue 15501] Missing parens for template argument in error message: Error: no property 'nsecs' for type 'MonoTimeImpl!cast(ClockType)0'
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Jan  4 03:17:20 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15501
Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m
           Hardware|x86                         |All
            Summary|bad error message: Error:   |Missing parens for template
                   |no property 'nsecs' for     |argument in error message:
                   |type                        |Error: no property 'nsecs'
                   |'MonoTimeImpl!cast(ClockTyp |for type
                   |e)0'                        |'MonoTimeImpl!cast(ClockTyp
                   |                            |e)0'
                 OS|Mac OS X                    |All
           Severity|regression                  |minor
--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
Previously, it printed MonoTime instead of MonoTimeImpl!cast(ClockType)0,
because MonoTime wasn't previously templated, whereas is now it's an alias to
MonoTimeImpl!(ClockType.normal).
The bug here is entirely in how dmd prints out the template argument in the
error message.
--
    
    
More information about the Digitalmars-d-bugs
mailing list