[Issue 20194] New: .di files are not stripped of constructor definitions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Sep  7 05:17:45 UTC 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 at puremagic.com
          Reporter: maxsamukha at 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)
        {
        }
}
--
    
    
More information about the Digitalmars-d-bugs
mailing list