www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16015] New: Sometimes importing a module both top-level and


          Issue ID: 16015
           Summary: Sometimes importing a module both top-level and in a
                    version(unittest) block causes some method overrides
                    to be hidden
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: meapineapple gmail.com

See http://forum.dlang.org/post/uaxbzdfcgapcnbelcwho forum.dlang.org

Attempts to reproduce this error more concisely have been unsuccessful, either
the redundant imports resolve without error (e.g. import some_module
duplicated) or the compiler gives an error like "Error: alias
some_module.some_struct conflicts with alias some_module.some_struct" (e.g.
import some_module : some_struct duplicated). In short - both of those errors
are sensible and I haven't been able to pin down what caused the different
behavior in the code given in the linked post.

May 11 2016