www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15179] New: Local imports cause outer imports to be excluded


          Issue ID: 15179
           Summary: Local imports cause outer imports to be excluded from
                    overload set
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: Jesse.K.Phillips+D gmail.com

This very basic program built with 2.067 and does not compile with 2.068.2:

import std.conv;

void main() {
import core.time;

test.d(5): Error: template core.time.to cannot deduce function from argument
types !(uint)(string), candidates are:
core.time.to(string units, T, D)(D td) if (is
(_Unqual!D == TickDuration) && (units == "seconds" || units == "msecs" || units
== "usecs" || units == "hnsecs" || units
 == "nsecs"))

Oct 08 2015