digitalmars.D.bugs - [Issue 17827] New: Unused lazy parameter supposedly calls dtor
- via Digitalmars-d-bugs (17/17) Sep 14 2017 https://issues.dlang.org/show_bug.cgi?id=17827
https://issues.dlang.org/show_bug.cgi?id=17827 Issue ID: 17827 Summary: Unused lazy parameter supposedly calls dtor Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: eyal weka.io struct A { ~this() {} } void foo(lazy A a) pure {} // Error: pure function 'foo' cannot call impure destructor 'A.~this' --
Sep 14 2017