[Issue 23303] New: [REG2.096] Conflict error on private imports

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 23 23:16:45 UTC 2022


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

          Issue ID: 23303
           Summary: [REG2.096] Conflict error on private imports
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: johanengelen at weka.io

Testcase (two files):

File a.d
```
import std.format;
import b;
void foo(string path){
    format("%s", path);
}
```

File b.d
```
import std: format;
import std: format;
```

Compile with `dmd a.d b.d -o-`, error since dlang2.096:
a.d(4): Error: function `std.format.format!(char, string).format` at
std/format/package.d(773) conflicts with function `std.format.format!(char,
string).format` at std/format/package.d(773)

--


More information about the Digitalmars-d-bugs mailing list