Bug 8527 – `object.destroy` doesn't destroy interfaces

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-09T03:05:00Z
Last change time
2012-08-21T08:31:19Z
Assigned to
verylonglogin.reg
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2012-08-09T03:05:01Z
--- interface I { } class A: I { string s = "A"; this() {} } void main() { auto a = new A; a.s = "asd"; I i = a; destroy(i); assert(a.s == "A"); // fails } ---
Comment #1 by verylonglogin.reg — 2012-08-09T03:10:48Z
Comment #2 by github-bugzilla — 2012-08-09T10:35:32Z
Comment #3 by code — 2012-08-21T08:31:19Z
Fixed in Git master.