September 07, 2019
https://issues.dlang.org/show_bug.cgi?id=20194

          Issue ID: 20194
           Summary: .di files are not stripped of constructor definitions
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: maxsamukha@gmail.com

test.d:

class A {
        this() {}
}

struct S {
        this(int x) {}
}


test.di generated with 'dmd -H -o- test.d' retains constructor definitions:

// D import file generated from 'test.d'
class A
{
        this()
        {
        }
}
struct S
{
        this(int x)
        {
        }
}

--