[Issue 17827] New: Unused lazy parameter supposedly calls dtor
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 14 21:33:37 UTC 2017
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 at puremagic.com
Reporter: eyal at weka.io
struct A { ~this() {} }
void foo(lazy A a) pure {} // Error: pure function 'foo' cannot call impure
destructor 'A.~this'
--
More information about the Digitalmars-d-bugs
mailing list