www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17144] New: [REG 2.071] local imports became invisible

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

          Issue ID: 17144
           Summary: [REG 2.071] local imports became invisible
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

struct A
{
  import core.stdc.stdio;
}

void f()
{
  A.puts("a");
}

Should give deprecation instead of an error.

--
Feb 04