← Back to index
|
Original Bugzilla link
Bug 20194 – .di files are not stripped of constructor definitions
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2019-09-07T05:17:45Z
Last change time
2019-09-09T11:45:05Z
Assigned to
No Owner
Creator
Max Samukha
Comments
Comment #0
by maxsamukha — 2019-09-07T05:17:45Z
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) { } }
Comment #1
by doob — 2019-09-07T13:25:58Z
This was changed in some version of DMD. Prior to that version constructors didn't include the body. Although I don't know the reason for the change.
Comment #2
by razvan.nitu1305 — 2019-09-09T11:45:05Z
*** This issue has been marked as a duplicate of issue 20090 ***